Commit Graph

142 Commits

Author SHA1 Message Date
jband%netscape.com
4788fda605 strings are TD_PSTRING | XPT_TDP_POINTER 1999-03-11 08:01:02 +00:00
jband%netscape.com
0ed6b5c0ec interfaces are pointers and getters return retvals 1999-03-11 07:12:18 +00:00
coop%netscape.com
c6c0714f4f NOT YET PART OF SEAMONKEY:
* added improved error message for IID collision.
1999-03-11 02:15:53 +00:00
coop%netscape.com
bec672cfc0 NOT YET PART OF SEAMONKEY:
* one character fix (D'oh!) to make InterfaceTypeDescriptor indices update properly.
1999-03-10 23:41:04 +00:00
shaver%netscape.com
4e97c87ca2 generate meaningful annotation 1999-03-10 21:09:01 +00:00
coop%netscape.com
8d12155d19 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.
1999-03-10 20:40:17 +00:00
coop%netscape.com
3c25f1eef4 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.
1999-03-10 19:44:36 +00:00
shaver%netscape.com
be86a9ee70 Handle nsID, nsIID and nsCID via a custom string-compare hack. (Ugly, but we
need 0.6.3 for a better fix, and this'll do for now.)
When sorting IDEs, sort entries with identical IIDs by namespace::name.
1999-03-09 19:59:42 +00:00
shaver%netscape.com
58164daf67 turn off more debugging noise and prepare for 0.6.2's forward handling 1999-03-09 08:23:00 +00:00
mccabe%netscape.com
9ad7c135d1 Chop xptinfo from the list of sub-Makes built by libxpt during coding
thrash.
1999-03-09 04:10:30 +00:00
coop%netscape.com
a356faf7da NOT YET PART OF SEAMONKEY:
* initial pass at handling the update of interface indices.
1999-03-09 02:51:22 +00:00
shaver%netscape.com
5346cd6379 Turn off debugging noise for myself.
Parse IIDs, and handle the unspecified case (= 0).
Sort IDE block like a good boy (all hail qsort).
Follow typedefs to make the right thing happen.
Hide [notxpcom] methods, and don't munge their signatures with _retval, etc.
1999-03-08 21:22:29 +00:00
coop%netscape.com
244b59ee4f 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
1999-03-08 21:13:58 +00:00
shaver%netscape.com
df77619c4a display method flags, handle bogus indices 1999-03-08 21:11:08 +00:00
shaver%netscape.com
2636f0fba1 Make params include the name of the interface referenced. 1999-03-08 20:33:35 +00:00
coop%netscape.com
23aac1de6d NOT YET PART OF SEAMONKEY:
* changing references to interfaces (within structs) to be indices rather than pointers
* updated xpt_dump and xpt_link code to reflect above change
1999-03-08 19:47:09 +00:00
shaver%netscape.com
d55deef772 fix remnant of 32-bit interface references 1999-03-08 03:56:14 +00:00
jband%netscape.com
5de5ba19b3 fix fopen mode for binary files - I'm starting to think that shaver, coop, and mccabe are doing this to me on purpose :) 1999-03-07 20:48:37 +00:00
shaver%netscape.com
07e853ae36 we do windows, but still wait on Mac 1999-03-07 02:37:17 +00:00
jband%netscape.com
a1ccd8bd8a getting shaver's changes compiling on Win32 - (and linking - dependency on nspr was added) 1999-03-06 21:39:45 +00:00
jband%netscape.com
21119d07b8 getting shaver's changes compiling on Win32 1999-03-06 21:35:01 +00:00
shaver%netscape.com
1a05939593 updated README and fixed 3484 (make in strings const) 1999-03-06 20:59:41 +00:00
shaver%netscape.com
c31d863018 Add XPT_InterfaceDescriptorAddConsts to API. 1999-03-06 19:40:34 +00:00
shaver%netscape.com
87bb504802 Compatibility with libIDL 0.6.x. (now required -- 0.5.x won't work any more)
Open absolutely-named files without include-path checking.
Always report errors (duh).
typelib generation: [iid_is()], consts, parse [uuid()], string type change
(will someone please explain our string types to me?), add float support,
handle [retval], IDL return as trailing argument (duh), attributes generate
accessor entries.
Use IDL_tree_error instead of burping at stderr.
1999-03-06 19:26:40 +00:00
scc%netscape.com
2ec0a397ea rename |IID()| --> |GetIID()| 1999-03-03 19:48:57 +00:00
jband%netscape.com
aae72939cf makefile fixups to get xptinfo working on Win32. Added xptinfo.h for public dll declarations 1999-03-02 07:59:53 +00:00
mccabe%netscape.com
40181d78ce Not yet part of the seamonkey build.
Moved nsInterfaceInfoManager files from the libxpt directory (where
they would have precipitated an unpleasant circular dependency between
xpidl and nsISupports.h) into a new subdirectory.

Added corresponding entries to allmakefiles.sh.

nsInterfaceInfoManager is intended to abstract the loading and
management of typelib information generated by xpidl, for use by
xpconnect.
1999-03-02 05:21:31 +00:00
brendan%netscape.com
a7bea6a1d8 Deal with wstring in .idl files correctly, or at least better. 1999-03-02 03:01:39 +00:00
brendan%netscape.com
b174ed2b63 Use new 'W' format with JS_ConvertArguments to get PRUnichar* out. 1999-03-02 02:51:33 +00:00
alecf%netscape.com
42a42d12dd put #ifdef's around the interface stub implementation output so that generated files can still
be part of the build system.
1999-02-27 03:34:39 +00:00
brendan%netscape.com
3c000de84d Fix indentation, fiddle to share common fputs string. 1999-02-26 02:48:01 +00:00
mccabe%netscape.com
6674e1b86b Initial checkin of typelib loading service. 1999-02-25 22:56:43 +00:00
alecf%netscape.com
b5f4372dd4 include jsapi.h whenever we're doing stub work 1999-02-25 18:47:58 +00:00
coop%netscape.com
bca65dbd8e NOT YET PART OF SEAMONKEY:
* first pass at typelib linker
* parent_interface modification is untested
* interface offset management is unimplemented
* what to do about annotations?
1999-02-25 17:45:11 +00:00
alecf%netscape.com
88f29d5194 fix compilation problem on generated code where we had two variables named "result"
prepare to handle [nonxpcom] object return values
1999-02-23 19:30:53 +00:00
coop%netscape.com
0c1ab19c56 NOT YET PART OF SEAMONKEY:
* fixed casting problem in calls to Do8
1999-02-23 16:17:37 +00:00
shaver%netscape.com
207c08e698 handle new and old libIDL, [notxpcom], #ifdef XPIDL_JS_STUBS 1999-02-23 15:28:58 +00:00
alecf%netscape.com
8ef606dbd7 fix cases where native method wasn't being called on XPIDL void functions.
Add cases for methods with and without parameters, and with and without return types.
1999-02-23 02:39:31 +00:00
alecf%netscape.com
f911166782 add a space in between the new native type and the old one. 1999-02-23 02:38:16 +00:00
brendan%netscape.com
4a71eaefa6 - Use write rather than dump consistently (dump has unfortunate connotations).
- Avoid gratuitous extra newlines in foo.h compiled from foo.idl.
- Use do-while, not for or while, guarded by if that tests the loop condition.
- Use NS_EXPORT to qualify static InitJSClass and GetJSObject method.
- Turn enum declarations within interfaces into JS class constant numbers.
- Defend against null return from JS_GetPrivate (prototype and user-constructed
  objects have no private data).
1999-02-22 00:24:34 +00:00
brendan%netscape.com
228bfb73ef Fix goofs caught by alecf in GetJSObject generation. 1999-02-20 00:10:22 +00:00
jband%netscape.com
9733ee889d get xpidl building again on Win32 1999-02-19 21:39:41 +00:00
alecf%netscape.com
e266797a3b link xpidl statically against libxpt so that dist/bin doesn't need to be in your LD_LIBRARY_PATH 1999-02-18 22:59:17 +00:00
alecf%netscape.com
544d9d773b make these libraries build during the export phase 1999-02-18 22:36:27 +00:00
coop%netscape.com
4a28ad0dc3 NOT YET PART OF SEAMONKEY:
* now close input file in all cases
* warn user about params with no in/out flag information
* more internal error checking
1999-02-18 22:29:59 +00:00
brendan%netscape.com
051bbc0cff Finish Get and SetProperty, simplify InitJSClass via globalObject. 1999-02-18 19:59:11 +00:00
shaver%netscape.com
7c4aa3b23b Add dependency on libxpt and NSPR for typelib generation.
Only output |static const IID()| if we have an IID defined.
Output forward declarations.
Initial -m typelib stuff (handles methods, barely).
1999-02-18 17:43:38 +00:00
shaver%netscape.com
d96b4c6f50 fix InterfaceDescriptorAddMethods to not randomly overwrite memory, and fix
DoMethodDescriptor to not randomly overwrite md->result
1999-02-18 17:36:46 +00:00
brendan%netscape.com
51e07c6b0f Fixed wrapper management to be self-contained, requiring no extra interfaces. 1999-02-18 03:10:40 +00:00
shaver%netscape.com
7138211132 binary files are required (thanks, jband). also fix typo 1999-02-18 02:53:08 +00:00