216 Commits

Author SHA1 Message Date
beard%netscape.com
520944f612 added default args for XP_MAC.
git-svn-id: svn://10.0.0.236/trunk@26184 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-04 00:13:28 +00:00
beard%netscape.com
1bab660936 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@26181 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-03 23:36:11 +00:00
jband%netscape.com
89ab1cb51a fixed typo in doc
git-svn-id: svn://10.0.0.236/trunk@26058 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 19:51:05 +00:00
jband%netscape.com
4f08c2ac87 added porting guide and README docs
git-svn-id: svn://10.0.0.236/trunk@26024 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 06:15:09 +00:00
rogerl%netscape.com
b3ab8860c2 fixed .global label.
git-svn-id: svn://10.0.0.236/trunk@25976 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 01:07:59 +00:00
rogerl%netscape.com
0bc9722dc8 New. (And, as yet, unbuilt & untested)
git-svn-id: svn://10.0.0.236/trunk@25969 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 00:47:17 +00:00
briano%netscape.com
912ef1f4dc Only descend into tests if ENABLE_TESTS is set.
git-svn-id: svn://10.0.0.236/trunk@25757 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 22:58:07 +00:00
briano%netscape.com
671969444d Only descend into the tests directory if ENABLE_TESTS is set.
git-svn-id: svn://10.0.0.236/trunk@25580 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 03:07:23 +00:00
jband%netscape.com
6b22443b55 fix incorrect title comment (copied from another file)
git-svn-id: svn://10.0.0.236/trunk@25431 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 04:35:35 +00:00
jband%netscape.com
7eb2f758f8 add support for 'shared' flag in typelibs. This is available for use to indicate pointer type 'out' params which will not follow the xpcom rules of transfering ownership - i.e. they want to share a pointer rather than cloning the underlying data for the caller to delete when finished
git-svn-id: svn://10.0.0.236/trunk@25409 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-28 21:48:34 +00:00
jband%netscape.com
68fa3ac6bf removing export of removed file
git-svn-id: svn://10.0.0.236/trunk@25325 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 08:36:20 +00:00
mccabe%netscape.com
7c0d9806a3 Consolidated xpt_cpp.h with xptinfo.h; removed xpt_cpp.h. Also
modified uses...


git-svn-id: svn://10.0.0.236/trunk@25323 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 08:02:15 +00:00
jband%netscape.com
c7a2db96dc removing (yet another!) misplaced semi-colon
git-svn-id: svn://10.0.0.236/trunk@25321 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 06:20:40 +00:00
jband%netscape.com
6c9cb6fb43 removing misplaced semi-colonsthat break some platforms
git-svn-id: svn://10.0.0.236/trunk@25300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 01:53:40 +00:00
briano%netscape.com
b760f769a1 Fixed the bug that was assuming Linux==x86 (only).
git-svn-id: svn://10.0.0.236/trunk@25235 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 23:06:38 +00:00
danm%netscape.com
95b9ecdd63 removing glowcode. a:jband
git-svn-id: svn://10.0.0.236/trunk@25183 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 02:37:22 +00:00
mccabe%netscape.com
d8da835874 Move xptinfo, xptcall from export phase (erroneously copied from libxpt Makefile.in) to libs and back out previous temporary fix.
Finishing checkin.  Hopefully all is OK.


git-svn-id: svn://10.0.0.236/trunk@25106 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 10:35:19 +00:00
mccabe%netscape.com
4472153e37 Move xptinfo, xptcall from export phase (erroneously copied from libxpt Makefile.in) to libs and back out previous tree patch.
git-svn-id: svn://10.0.0.236/trunk@25105 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 10:28:39 +00:00
jband%netscape.com
d1bfe75c7b fix build bustage due to use of nscore.h before it is exported - I don't understand why this stuff is being compiled in the export phase. We can that later.
git-svn-id: svn://10.0.0.236/trunk@25101 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 09:05:28 +00:00
mccabe%netscape.com
755476edfa Adding libxpt and xpconnect to the build.
git-svn-id: svn://10.0.0.236/trunk@25098 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 07:50:11 +00:00
warren%netscape.com
4e8eccdd05 Added GetMethodInfoForName
git-svn-id: svn://10.0.0.236/trunk@25095 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 07:30:47 +00:00
jband%netscape.com
e137689e0f use nspr type
git-svn-id: svn://10.0.0.236/trunk@25036 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 03:37:40 +00:00
jband%netscape.com
2b30ec2086 add implementation files for unsupported platforms to allow clean build on all platforms even though we'll have failure at runtime on unsupported platforms
git-svn-id: svn://10.0.0.236/trunk@24895 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 22:16:14 +00:00
jband%netscape.com
6f8559e7b3 fix test Makefile.in
git-svn-id: svn://10.0.0.236/trunk@24807 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 07:19:15 +00:00
jband%netscape.com
61a92ba85a fix test Makefile.in
git-svn-id: svn://10.0.0.236/trunk@24806 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 07:16:53 +00:00
jband%netscape.com
d7f679ffcd fix filename
git-svn-id: svn://10.0.0.236/trunk@24804 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 07:04:52 +00:00
jband%netscape.com
afdb94aa37 initial checking of xptcall code. This module allows arbitrary invocation of xpcom methods and also allows an object to impersonate an object of an arbitrary xpcom class. This code is used for XPConnect and will also be used for a scriptable interface to RDF. The build scheme for libxpt, xptinfo, and xpconnect may be a bit screwy on some platforms until this settles down. Luckily, none of these modules are part of the client build yet and very few people should even notice the change
git-svn-id: svn://10.0.0.236/trunk@24777 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 02:23:29 +00:00
leaf%mozilla.org
8fadf11677 Landing nspr library name change, and plevent function call change.
git-svn-id: svn://10.0.0.236/trunk@24276 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-17 21:32:03 +00:00
mccabe%netscape.com
9062024e28 Another reworking of the loader -
- added a forward declaration of nsIInterfaceInfoManager to xptinfo.h

- reworked and cleaned up most aspects of the loader; typelib files now get associated typelib records, which have arrays of pointers to shared interface records; no hashtable lookup is necessary to resolve index pointers from params, etc to nsInterfaceInfo objects.

- moved to two hashtables in nsInterfaceInfoManager, mapping from name->interface record and iid->interface record.  Still unclear if I handle the different-iid, same-name case correctly.


git-svn-id: svn://10.0.0.236/trunk@24166 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 05:50:11 +00:00
jband%netscape.com
5eaf37bbb1 more to fix assumption that interfaces don't have the pointer bit set
git-svn-id: svn://10.0.0.236/trunk@24065 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 09:09:26 +00:00
jband%netscape.com
9ed30011df made in params const, added some comments
git-svn-id: svn://10.0.0.236/trunk@24029 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 01:34:37 +00:00
jband%netscape.com
d96fb8c360 fix assumption that interfaces don't have the poointer bit set
git-svn-id: svn://10.0.0.236/trunk@24028 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 01:31:48 +00:00
mccabe%netscape.com
b8deb21290 Fixed a place where I was missing an NS_RELEASE, thanks jband.
git-svn-id: svn://10.0.0.236/trunk@24019 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 00:56:47 +00:00
mccabe%netscape.com
d7ffc955ca Not part of seamonkey.
Removed awkward nsXPTParamInfo::GetInterface and friend, and als removed supporting nsXPTParamInfo.cpp file.  Replace by nsIInterfaceInfo::GetInfoForParam and friend.

Made the constructor for nsInterfaceInfo private, with nsInterfaceInfoManager as a friend class.


git-svn-id: svn://10.0.0.236/trunk@23899 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 06:49:01 +00:00
jband%netscape.com
2e6dec8b20 get xptinfo building on Win32 again
git-svn-id: svn://10.0.0.236/trunk@23651 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 02:21:23 +00:00
coop%netscape.com
989ad5fb47 NOT YET PART OF SEAMONKEY:
* added improved error message for IID collision.


git-svn-id: svn://10.0.0.236/trunk@23650 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 02:15:53 +00:00
coop%netscape.com
80dfa8d3e2 NOT YET PART OF SEAMONKEY:
* one character fix (D'oh!) to make InterfaceTypeDescriptor indices update properly.


git-svn-id: svn://10.0.0.236/trunk@23605 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 23:41:04 +00:00
coop%netscape.com
4e2ef3ec92 NOT YET PART OF SEAMONKEY:
* first annotation indicates that resulting typelib was created by the linker.
* annotations from files being linked in are now preserved.


git-svn-id: svn://10.0.0.236/trunk@23561 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 20:40:17 +00:00
coop%netscape.com
6db7aab3c3 NOT YET PART OF SEAMONKEY:
* xpt_dump now checks num_methods and num_constants before trying to walk the arrays.
* xpt_link now actually links. It even updates interfaces indices. Tested using all the idl files in mozilla/xpcom/idl.


git-svn-id: svn://10.0.0.236/trunk@23535 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 19:44:36 +00:00
mccabe%netscape.com
ea7137976d Added tests of getting info assoc'd with params to TestInterfaceInfo.cpp, which uncovered an off-by-one problem due to magic typelib offsets for nsXPTParamInfo. Which makes me wonder if we shouldn't have just said #define XPT_INDEX_NO_PARENT 0xFFFF.
git-svn-id: svn://10.0.0.236/trunk@23525 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 10:36:13 +00:00
mccabe%netscape.com
1c4dd83cdc Not yet part of the Monkey.
- Added magic comments to make the LXR browsing experience more pleasant.

- introduced the nsInterfaceRecord class (formerly less formally interface_record).

- changed the XPTInterfaceDirectoryEntry pointer in InterfaceInfoes into nsInterfaceRecord pointers, removing the need for a hash just to go from entries to records to support nsXPTParamInfo::GetInterface.

- made the destructor for InterfaceInfo objects remove null the pointer in the corresponding reference.


git-svn-id: svn://10.0.0.236/trunk@23521 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 09:30:48 +00:00
mccabe%netscape.com
9e433b6fbe Not part of seamonkey.
Added a comment saying preconditions the tests actually needs to
succeed.  (also simplified these some.)


git-svn-id: svn://10.0.0.236/trunk@23515 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 08:22:17 +00:00
mccabe%netscape.com
c4fef7da6b Not part of seamonkey.
Fixed bustage due to improper use of DEBUG_somehacker.


git-svn-id: svn://10.0.0.236/trunk@23508 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 06:59:53 +00:00
jband%netscape.com
c118498478 making it compile on Win32
git-svn-id: svn://10.0.0.236/trunk@23506 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 06:36:03 +00:00
mccabe%netscape.com
0b0b45888d Not part of seamonkey.
API change - changed nsXPTParamInfo from taking an InterfaceDirectoryEntry* (which really isn't part of the API I want to expose) to taking an nsIInterfaceInfo*, which is.


git-svn-id: svn://10.0.0.236/trunk@23499 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 06:06:19 +00:00
mccabe%netscape.com
2c5a38de3e Not yet part of Seamonkey.
Progress on the nsInterfaceInfoManager typelib loader for xpconnect.
Now has complete (I think) functionality, though the implementation is
still probably rusty.

I punted on defining a directory for .xpt files at this point; the
implementation looks at the value of the XPTDIR environment variable
for this value.

Note that the nsXPTParaminfo interface (public/xpt_cpp) has changed
(possibly temporarily) to take an 'entry' parameter.


git-svn-id: svn://10.0.0.236/trunk@23485 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 04:26:15 +00:00
mccabe%netscape.com
783ac85782 Chop xptinfo from the list of sub-Makes built by libxpt during coding
thrash.


git-svn-id: svn://10.0.0.236/trunk@23274 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 04:10:30 +00:00
coop%netscape.com
093d2cdff1 NOT YET PART OF SEAMONKEY:
* initial pass at handling the update of interface indices.


git-svn-id: svn://10.0.0.236/trunk@23266 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 02:51:22 +00:00
coop%netscape.com
3371ff5105 NOT YET PART OF SEAMONKEY:
* linker now sorts based on IIDs
* xpt_dump no longer complains about md->result if it is of the correct retval type


git-svn-id: svn://10.0.0.236/trunk@23202 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-08 21:13:58 +00:00
shaver%netscape.com
26b1439250 display method flags, handle bogus indices
git-svn-id: svn://10.0.0.236/trunk@23201 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-08 21:11:08 +00:00