Commit Graph

117 Commits

Author SHA1 Message Date
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
shaver%netscape.com
950bd8bad9 Report read failure and short reads (should handle short reads better! RSN!).
File length is a size_t now, not an int.
1999-02-18 00:42:01 +00:00
brendan%netscape.com
8d254d72e6 Cope with void return. 1999-02-17 22:45:12 +00:00
brendan%netscape.com
ab4487d5ca More stub work checkpointing; expand tabs. 1999-02-17 22:13:32 +00:00
coop%netscape.com
14a98b2ab8 NOT YET PART OF SEAMONKEY:
* replaces reference to unistd.h by stdlib.h
1999-02-17 17:36:01 +00:00
jband%netscape.com
40ef764595 get this code compiling in win32 1999-02-17 07:05:36 +00:00
brendan%netscape.com
ee53936825 Second checkpoint. 1999-02-17 05:56:30 +00:00
brendan%netscape.com
e5596bb3ed Checkpoint xpidl -m stub work. 1999-02-17 01:17:52 +00:00
coop%netscape.com
76bdfa96b3 NOT YET PART OF SEAMONKEY:
* eliminated compiler warnings on Linux
* added extra error checking for file manipulation in SimpleTypeLib and xpt_dump
* removed erroneous comment from xpt_struct.h
1999-02-16 18:41:30 +00:00
brendan%netscape.com
fe8a88eaf3 prep for -m stub; misc code cleanups. 1999-02-16 05:10:40 +00:00
shaver%netscape.com
c70caa7ec2 make includes work right; support `-\' as stdin for input file 1999-02-16 03:47:24 +00:00
coop%netscape.com
434b53519d NOT YET PART OF SEAMONKEY:
* changed type descriptor tag defines into one big enum
* made corresponding changes to xpt_dump
1999-02-10 17:44:05 +00:00
shaver%netscape.com
ba411b1126 fix #define for generated headers 1999-02-09 15:30:31 +00:00
coop%netscape.com
cc3262e0a5 NOT YET PART OF SEAMONKEY:
* added function XPT_GetInterfaceIndexByName
* replaced remaining occurences of 'namespace' with 'name_space' to keep C++ happy
* added xpt_dump display for param types (in/out/retval)
* changed xpt_dump handling for wchar_t strings
* use shaver's print_IID function when displaying type descriptors
* removed DoAnnotations (not used)
1999-02-09 00:14:38 +00:00
jband%netscape.com
7f234de162 NOT PART OF SEAMONKEY - a bunch of fixes to get it building on win32 1999-02-08 21:47:35 +00:00
shaver%netscape.com
e51cd01134 move includes outside #ifdef for precompiled-header love, also PR_EXTERN_C 1999-02-08 19:48:48 +00:00
shaver%netscape.com
886e0b74fd Windows make goop 1999-02-08 18:34:54 +00:00
shaver%netscape.com
aae15704a1 Fixed native handling.
IDL-in-comments works again.
Quell some warnings (now -Wall happy!).
1999-02-08 17:47:44 +00:00
shaver%netscape.com
22cd82efb2 Added XPT_InterfaceDescriptorAddMethods to grow the method table.
Removed unused XPT_ALLOC macro.
Move XPT_SetDataOffset calls into XPT_DoHeader so that the API consumer doesn't
need to know about header sizing and IDE layout guck.
Handle NULL namespaces and interface_directory bits snd idents better.
Made xpt_dump show the the IID for interfaces.
1999-02-08 16:30:22 +00:00
coop%netscape.com
daf6598bf9 NOT YET PART OF SEAMONKEY:
* added support for non-verbose mode as default for typelib dumper.
1999-02-04 03:16:07 +00:00
coop%netscape.com
5b67c2d922 NOT YET PART OF SEAMONKEY:
* add command-line flag for verbose mode, which will soon not be the default
* now outputs to stdout
* added output for int64, uint64, and wchar
1999-02-04 00:31:59 +00:00
shaver%netscape.com
0abc9fdeb8 New back-end switching for whiter teeth and fresher breath.
De-const-ipate in params.  (Maybe strings should still be const?  I await the
outcome of The Great String Debate.)
1999-02-03 23:55:33 +00:00
shaver%netscape.com
7cc025f858 (NOT YET PART OF SEAMONKEY)
Update to use 16-bit IDE indices (one-based) instead of header-pool offsets.
Removed debugging cruft.
Added prototypes to get rid of warnings.
Fix many dumb mistakes WRT allocation and index checking.
1999-02-03 21:37:25 +00:00
mcafee%netscape.com
3ebf5bfd31 Ignore generated SimpleTypeLib, PrimitiveTestexecutables 1999-02-02 06:20:46 +00:00
mcafee%netscape.com
a9ba07971c Ignore generated xpt_dump executable 1999-02-02 06:19:50 +00:00
coop%netscape.com
ad630a62a1 NOT YET PART OF SEAMONKEY:
* fixed header pointer assignment problem
* removed useless defines
* added correct level of indirection for sub-structs of header
1999-02-02 01:26:36 +00:00