204 Commits

Author SHA1 Message Date
mhammond%skippinet.com.au
17f5928f9f Change how we detect if xpcom was initialized. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@199022 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-05 07:22:27 +00:00
mhammond%skippinet.com.au
82c1d5e211 Forward-port changes from the DOM_AGNOSTIC3_BRANCH. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@199020 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-05 06:26:14 +00:00
mhammond%skippinet.com.au
94e1ef753b First cut at the Python implementation of nsIScriptContext etc (see
http://wiki.mozilla.org/Breaking_the_grip_JS_has_on_the_DOM).

See also bug 255942 - "Support other scripting languages than JS".

Not part of the build - indeed this will not build at all until bug
255942 lands, or the latest patch there is applied.


git-svn-id: svn://10.0.0.236/trunk@195705 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-29 01:56:45 +00:00
mhammond%skippinet.com.au
01b2bb2338 Make initialization and logging more reliable. Get building again on
Linux.  Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@194957 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 07:19:42 +00:00
mhammond%skippinet.com.au
42d97d027f Move all Python initialization code into a new global
PyXPCOM_EnsurePythonEnvironment.  At the same time remove the old, dead
code behind PYXPCOM_USE_PYGILSTATE and LOADER_LINKS_WITH_PYTHON.
Not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@194111 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 06:12:14 +00:00
mhammond%skippinet.com.au
dcae2e2005 PyXPCOM_LogError should always write the error message, even if there is
no traceback or exception info.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@194109 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 06:04:23 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
mhammond%skippinet.com.au
3d10f65f51 Bug 129216: Integrate Python xpcom bindings with build system
Should not affect the default build!
r=benjamin, rs=brendan


git-svn-id: svn://10.0.0.236/trunk@193127 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-28 10:57:18 +00:00
bryner%brianryner.com
7ec5e10667 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin.
git-svn-id: svn://10.0.0.236/trunk@192401 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 04:59:42 +00:00
mhammond%skippinet.com.au
81d928f891 Get pyxpcom initializing in debug builds without throwing assertions.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@190468 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-18 01:21:50 +00:00
mhammond%skippinet.com.au
0399f6864e Introduce the first of standard Python implemented components.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@190345 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 11:56:18 +00:00
mhammond%skippinet.com.au
ecd8bd8e5a Fix return value from PyObject_AsNSString. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@190092 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-15 07:35:39 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
mhammond%skippinet.com.au
e59ded1209 Reinstate the dlopen(PYTHON_SO,RTLD_NOW | RTLD_GLOBAL);
git-svn-id: svn://10.0.0.236/trunk@188332 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 11:29:15 +00:00
mhammond%skippinet.com.au
794db6c084 Remove dlopen no longer necessary now we have the dynamic python issue
sorted.  Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@188140 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-25 04:07:19 +00:00
mhammond%skippinet.com.au
6687aadee1 Get pyxpcom building on osx. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@188061 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-23 21:59:18 +00:00
mhammond%skippinet.com.au
3f5cd7f9ad Remove a number of 'visibility' related warnings on linux.
git-svn-id: svn://10.0.0.236/trunk@187994 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 04:16:33 +00:00
mhammond%skippinet.com.au
d394dc834d Merge extensions/python/xpcom changes from DOM_AGNOSTIC2_BRANCH into the
trunk.


git-svn-id: svn://10.0.0.236/trunk@187878 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-20 05:50:28 +00:00
mhammond%skippinet.com.au
f2145b2660 Remove old unused file - not part of the build.
git-svn-id: svn://10.0.0.236/trunk@186250 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 05:19:11 +00:00
mhammond%skippinet.com.au
afc19f2f56 nsIComponentLoader is dead - long live nsIModuleLoader! Take the
opportunity to remove support for nsIComponentManagerObsolete, and
formalize a nice shutdown API.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@186246 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 05:05:45 +00:00
mhammond%skippinet.com.au
aab25a0d80 Fix breakage caused by the death of XPTI_GetInterfaceInfoManager.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@185779 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-08 01:05:02 +00:00
mhammond%skippinet.com.au
4129587c7c Fix breakage caused by trunk changes to NS_DEFINE_STATIC_IID_ACCESSOR.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@185778 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-08 01:04:05 +00:00
timeless%mozdev.org
dae7b0629a Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
timeless%mozdev.org
f9bdb44b34 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185269 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 08:16:51 +00:00
mhammond%skippinet.com.au
1cf8051395 Bug 297598 - bring pyxpcom up to speed.
r=alecf, sr=shaver - not used by any builds.


git-svn-id: svn://10.0.0.236/trunk@178999 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 21:52:19 +00:00
cbiesinger%web.de
2ce7d2cbfa Bug 129216 Integrate Python xpcom bindings with build system
patch by Mark Hammond <mhammond@skippinet.com.au> / Remy C. Cool
<dev-python@smartology.nl> / Christian Persch <chpe@gnome.org>
r+a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@174797 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-17 21:03:43 +00:00
gerv%gerv.net
7ecbd9f694 Bug 236613: change to MPL/LGPL/GPL tri-license. This was authorised by an email from David Ascher <DavidA@ActiveState.com>.
git-svn-id: svn://10.0.0.236/trunk@167152 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 15:34:06 +00:00
gerv%gerv.net
9f207af4db Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@166101 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 22:27:03 +00:00
gerv%gerv.net
872f5cb1ce Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@161286 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-25 23:02:50 +00:00
mhammond%skippinet.com.au
1d72a2810d test_misc moves to being a unittest based test. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@159576 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:46:18 +00:00
mhammond%skippinet.com.au
615fa683e1 Add NS_ERROR_GENERATE_SUCCESS - not part of the build.
git-svn-id: svn://10.0.0.236/trunk@159575 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:45:42 +00:00
mhammond%skippinet.com.au
ad9716e8f6 Update build instructions - nmake builds are long dead.
git-svn-id: svn://10.0.0.236/trunk@159574 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:44:56 +00:00
mhammond%skippinet.com.au
86d164fbca Fix build breakage for Python 2.2 and earlier - not part of the build.
git-svn-id: svn://10.0.0.236/trunk@159573 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:43:33 +00:00
mhammond%skippinet.com.au
bbc9765867 Update initialize of nsString, which changed sometime in the last 2 years!
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@159572 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:42:46 +00:00
mhammond%skippinet.com.au
f3f3fc5d92 Initialize out params before calling the interface.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@159571 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:41:50 +00:00
gerv%gerv.net
9efd617dd4 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@159360 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 19:30:11 +00:00
gerv%gerv.net
d6544e324a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155092 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:14:17 +00:00
mhammond%skippinet.com.au
8c9e42bffb Don't keep the Python thread-lock - this prevents secondary threads from
starting.  Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@150791 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 23:15:33 +00:00
bryner%brianryner.com
101a9e4e72 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146615 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:05:34 +00:00
mhammond%skippinet.com.au
20db0111df Fix errors with (and add tests for) unsigned long constants on solaris.
Not part of the build (and neither was the last checkin - sorry)


git-svn-id: svn://10.0.0.236/trunk@145716 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-08 00:51:40 +00:00
mhammond%skippinet.com.au
fd03b99bb2 Add some extra utf8 string tests.
git-svn-id: svn://10.0.0.236/trunk@145715 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-08 00:50:34 +00:00
mhammond%skippinet.com.au
5c9b4ceab8 Fix a bug when registering just a single component. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145638 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-06 01:04:15 +00:00
mhammond%skippinet.com.au
ac489b8807 One final wchar_t -> PRUnichar. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145403 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:24:05 +00:00
mhammond%skippinet.com.au
d85c11ee4d Tweak so it still builds with Python 2.2. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145401 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:10:31 +00:00
mhammond%skippinet.com.au
03173c38eb Remove a couple of unused variables. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145366 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:18:12 +00:00
mhammond%skippinet.com.au
5b9691f9e2 Remove unused variable.
git-svn-id: svn://10.0.0.236/trunk@145365 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:13:50 +00:00
mhammond%skippinet.com.au
9a14fdb870 Not part of the build.
Explicitly use Python UCS2 functions, for platforms where
sizeof(wchar) != sizeof(PRUnichar).

Incorporate Linux build changes for dynamic linking.


git-svn-id: svn://10.0.0.236/trunk@145364 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:08:13 +00:00
mhammond%skippinet.com.au
33152e29f9 We were breaking Python's rules for comparison result returns - and
this only started mattering in Python 2.3.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@145091 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 00:23:45 +00:00
mhammond%skippinet.com.au
446028483d When new components are registered, re-scan the Python directory for
new .pth files (which may have just been installed).

Add _xpcom.GetSpecialDirectory() to make this work.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@145049 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 07:30:55 +00:00
mhammond%skippinet.com.au
f0a5bd7907 Convert constants from hex to dec, to prevent warnings in Python 2.3
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@144917 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-17 11:02:34 +00:00