Граф коммитов

289 Коммитов

Автор SHA1 Сообщение Дата
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
coop%netscape.com 072c9699f3 NOT YET PART OF SEAMONKEY:
* added directory libxpt/tools which currently only contains the typelib dumper
* removed dump code from tests dir
* added/modified appropriate Makefiles and configure scripts
1999-01-30 01:10:01 +00:00
coop%netscape.com 30a0f2ae51 NOT YET PART OF SEAMONKEY:
* committing fixes for shaver
* header pointer is now set XPT_DoHeader
* fixed assertion error in CHECK_COUNT macro
1999-01-30 01:03:54 +00:00
coop%netscape.com 98d8567a39 NOT YET PART OF SEAMONKEY:
* added macros for checking bitflag values
* dump code is complete, minus actually reading from disk.
1999-01-28 06:01:56 +00:00
shaver%netscape.com 680a29d6cd private delete isn't the mind-bendingly fun stuff we thought it would be (for scc) 1999-01-28 05:38:14 +00:00
shaver%netscape.com ff139572c0 fix header.data_pool writing 1999-01-28 01:55:24 +00:00
coop%netscape.com fc64b44984 NOT YET PART OF SEAMONKEY:
* fixed XPT_SizeOfHeader. It wasn't actually walking the annotations, but it does now.
* added some basic dumping code to SimpleTypeLib. Currently only the headers can be dumped. Once XDR read code is up and running, this dumping code will become a separate utility, most likely under a libxpt/tools subdir.
1999-01-27 06:32:57 +00:00
alecf%netscape.com 6834e87439 makefile for XPIDL on Windows 1999-01-26 23:49:43 +00:00
shaver%netscape.com a64e54446d Fixed method and type descriptors, made const descriptors go. 1999-01-26 19:31:25 +00:00
alecf%netscape.com a39aee01fc stop using IsXXX for boolean Getters 1999-01-26 18:20:30 +00:00
shaver%netscape.com 9feb565d72 fixed fencepost in XPT_DoHeader, along with more error-checking 1999-01-26 01:34:21 +00:00
shaver%netscape.com adc25a815d Fixed IID copying (duh -- all the bytes matter).
NewString and NewStringZ APIs.
No more bit-fields (nod to jband and fur, thanks).
Cleaned up Annotation structures.
On-disk offsets are 1-based.
Write annotations to disk, and account for them in header size, etc.
Fix sundry cursor-vs-&cursor bugs and don't-allocate-on-decode bugs.
Write MethodDescriptors and InterfaceDescriptors to disk!
Executive Summary: can now write very simple .xpt files!
1999-01-25 19:36:48 +00:00
mcafee%netscape.com 61a7675545 Switching to SIMPLE_PROGRAMS 1999-01-23 12:21:27 +00:00
shaver%netscape.com aa1ebbaf5b Added prototypes for Header XDR functions.
Minor brace-placement tweaks.
Added SimpleTypeLib test program, although it doesn't build due to Makefile.in
suckage.
Fixed XPT_DoHeader to only write IDEs once (duh).
Added SizeOfHeaderBlock to API.
1999-01-22 17:53:35 +00:00
mcafee%netscape.com ba84b098cf Yanked rules that are in rules.mk 1999-01-22 12:14:51 +00:00
shaver%netscape.com 3ffc120748 Added methods to create or fill headers, IDEs, interface descriptors,
method descriptors, param descriptors, const descriptors (partial)
and annotations.
Rejigged XPTAnnotation for proper struct nesting and linked-listed-ness.
Implemented SizeOfHeader (partially).
Fixed data_pool handling in XPT_DoHeader.
Implemented XPT_SeekTo and XPT_DoIID.
1999-01-22 09:13:02 +00:00
ramiro%netscape.com 127039e271 Ignore generated files. 1999-01-22 06:33:54 +00:00
shaver%netscape.com a11e05cc3d test DoString 1999-01-21 20:05:58 +00:00
shaver%netscape.com a7561e1c7c allocate memory for str->bytes in DoString decode, duh 1999-01-21 20:05:27 +00:00
shaver%netscape.com fc992be11c fix dumb DBG thing 1999-01-21 19:21:58 +00:00
coop%netscape.com cebd0d5f18 NOT YET PART OF SEAMONKEY:
* removed struct size #defines -> they were just silly anyway.
* replaced references to IDE file offsetsi with uint32 indices.
* first attempt at sorting out order of storage for XPTHeader and XPTInterfaceDirectoryEntry
1999-01-21 19:18:47 +00:00
alecf%netscape.com 45c2ae4f23 changes to make XPIDL compiler work under Windows 1999-01-21 18:59:52 +00:00
shaver%netscape.com ce42fc0851 Better cursor management stuff.
Mild macro renaming.
Debugging output from CHECK_COUNT.
Fixed primitives and PrimitiveTest: we now pass! (32, 16, 8 and CString)
Dynamically link PrimitiveTest.
1999-01-21 17:37:54 +00:00
shaver%netscape.com 5ee98f8ade added some tests (we don't pass yet =) ), wrote some primitives 1999-01-20 23:17:05 +00:00
coop%netscape.com 4fe4d500ab NOT YET PART OF SEAMONKEY:
* added looping to read/write InterfaceDirectoryEntrys
* InterfaceDescriptors are no longer DECODEd as part of the IDE DECODEing process
* added skeleton for XPT_GetDescriptorByOffset
1999-01-20 17:58:14 +00:00
coop%netscape.com 7d3c473417 NOT YET PART OF SEAMONKEY:
* added offset management code in the form of calls to shaver's macros
1999-01-19 23:46:20 +00:00
coop%netscape.com f2d5cd7054 NOT YET PART OF SEAMONKEY:
* added #defines for is_pointer/tag combos used in TypeDescriptors to match table in typelib spec.
* now handle error case in xpt_struct.c using macro
* still must do offset management
1999-01-18 22:04:49 +00:00
coop%netscape.com 5fc06bfca5 NOT YET PART OF SEAMONKEY:
* modified in-memory structs slightly to get them to compile
* xpt_strcut.c now compiles, and with no warnings (at no extra charge)
* still must do offset management
1999-01-18 19:53:47 +00:00
shaver%netscape.com 10f4d40c79 Much XDR header whacking. Still need to figure out how the pool management
stuff looks.
Fixed XPT_PREAMBLE (again).
xpt_xdr.c now compiles!
1999-01-18 18:28:14 +00:00
shaver%netscape.com 00741083fe fix up XPT_PREAMBLE booboo 1999-01-18 17:58:34 +00:00
shaver%netscape.com 7c8b3fd275 make goop (Win and Unix) 1999-01-18 17:44:06 +00:00
shaver%netscape.com 4d0a0a61c3 make goop (Windows and Unix) and header fixes 1999-01-18 17:43:36 +00:00
coop%netscape.com d557721c1f NOT YET PART OF SEAMONKEY:
* updated XPT_Do code to match in-memory structs
1999-01-18 17:26:04 +00:00
shaver%netscape.com 9836a9165b new API stuff, and start on primitive implementations 1999-01-18 16:54:57 +00:00
coop%netscape.com 95fe556feb NOT YET PART OF SEAMONKEY:
* Added at least basic comments for all structs.
* Added #defines for struct sizes.
1999-01-18 15:00:03 +00:00
shaver%netscape.com 1d651befd8 more primitives and over-complex macros. next stop: bit-handling (not yet part of seamonkey) 1999-01-15 21:14:48 +00:00
coop%netscape.com 851b2c9b09 NOT PART OF SEAMONKEY
- updated and streamlined in-memory structure to coincide with typelib specification.
- added comments for more obtuse structures
1999-01-15 19:23:40 +00:00
coop%netscape.com 8974b59b09 Fleshed out XDR code for in-memory structs.
To do:
- still need to track data pool offsets for most structs
1999-01-15 00:06:44 +00:00
coop%netscape.com 084afe2ada Made necessary modifications to in-memory structs after writing some of
the XDR code for them.
1999-01-15 00:04:56 +00:00
shaver%netscape.com fe030ddb6e updated API example in XPT_DoIDE 1999-01-14 17:35:14 +00:00
shaver%netscape.com ce7e4abb48 start of per-struct XDR code; a: leaf 1999-01-13 21:52:02 +00:00
shaver%netscape.com 82abed2f8f more header goo, xdr implementation stubs 1999-01-13 15:20:25 +00:00
shaver%netscape.com 73c8b0241d initial XDR primitives 1999-01-12 21:36:11 +00:00
coop%netscape.com 43fc399a47 Removed references to xpidl_typelib.h 1999-01-12 19:26:37 +00:00
shaver%netscape.com 840f5d9ec3 initial typelib structures 1999-01-12 19:17:25 +00:00
shaver%netscape.com 2fe4a733a3 Update to (and require!) libIDL 0.5.8.
Fix silly argument processing brokenness.
Prepare for IDL_tree_to_IDL when it arrives.
Proper basename stuff for #ifdef __gen_nsIFoo_h__ and others.
Handle empty interfaces.
Dead code trimming (ident, etc.).
Typedef support, including arrays.
nsVarArgs instead of ... in C++ headers.
Fix #include scanning bug that caused pain when we skipped an include that
had already been processed.
1999-01-11 16:56:45 +00:00
coop%netscape.com 21ec63486f Added binary file open as first step for creating typelib files. 1999-01-06 23:47:45 +00:00
coop%netscape.com b4f9c6bb84 Updated struc for ParamDescriptor 1999-01-06 22:07:16 +00:00
coop%netscape.com 445151ea1c Added reference to xpidl_typelib.h 1998-12-31 22:11:39 +00:00
coop%netscape.com 5f1e87dfb3 Initial pass at declarations required for building typelib files. 1998-12-31 22:11:05 +00:00
shaver%netscape.com f695bdad8d invoke -> typelib 1998-12-18 17:12:07 +00:00
alecf%netscape.com ad42830c67 certain methods were not spitting out = 0 at the end of the header 1998-12-17 19:39:10 +00:00
shaver%netscape.com ec05dde4ba Now use MODULE instead of MODULE_NAME.
Update README for new libIDL version.
Add -o basename option and use proper output.
Eradicate some final stdout references.
Pretty printing, whee.
New |operator delete| and |IID| stuff for scc.
Support for raw codefrags (``%{ C++\n ... \n%}\n'') and more bufmgmt debugging.
Use IDL_file_set everywhere.
1998-12-14 18:47:39 +00:00
shaver%netscape.com b7e56cfb2f Fixed usage-string typo.
Update to 0.5.7 IDL_tree_property_get API.
Reworked input callback for cleanliness.
Add (not-yet-working) infrastructure for %{ C %} raw blocks.
1998-12-09 13:08:29 +00:00
shaver%netscape.com 5e62a635e8 remove dead code, tweak whitespace 1998-12-07 20:23:37 +00:00
shaver%netscape.com e02501b11c Added varargs support (produces "..." in C++ until we figure out what
nsIVarargs should look like).
IDL return value now becomes a final (but before varargs!) out parameter
_retval in C++.
Prettied up some whitespace.
1998-12-06 19:52:21 +00:00
shaver%netscape.com c567e3d343 Update usage message.
Add #include processing.
Generate #define NS_IFOO_IID_STR for kipp.
More header-generation niceties: #ifndef __nsIFoo_h__, DO NOT EDIT warning
now mentions source filename.
Generate #include in header to match #include in IDL, not by grovelling for
referenced interfaces.
(XXX: Need to polish up memory management.)
1998-12-06 18:41:44 +00:00
shaver%netscape.com 8436786eb0 Add generated file warning.
Remove excessive #include "nsISupports.h" generation.
Interfaces are public:, accessors are pure (= 0).
1998-12-03 17:38:55 +00:00
shaver%netscape.com e9350617c4 Fix indentation, which was my fault and not andrewv's.
Add nsISupports to the always-include list.
Clean up interface generation code, and then mess it up again with
IID handling.
1998-12-03 06:33:59 +00:00
shaver%netscape.com 907b2e8ea7 Updated README.
Better arg handling and now lower-case mode flags.
andrewv's fixes to lose dependency on IDLN_ enum order (but not his changes
to indentation settings!).
1998-12-02 19:53:27 +00:00
shaver%netscape.com 7cb17ad5db Added NPL everywhere (ooops!).
Handle enums.
Output idents properly in IDL comments.
1998-11-28 16:52:24 +00:00
shaver%netscape.com 2356d797d9 Error message cleanups, including insertion of line/file info in initial
buffer, to make errors give correct line-number data.
Strip comments.  (Still need to handle doc comments correctly.)
1998-11-27 16:39:45 +00:00
shaver%netscape.com ff8371bf4c Updated README now includes Win32 libIDL/glib URLs, and mention of msw's
GTK+/glib 1.1.5.
Generate #includes for interfaces to which we refer.
Output inheritance data.
Switch to PRUnichar * for wstring, and char * for string.
in params that become pointer types get const'd.
1998-11-26 21:03:03 +00:00
shaver%netscape.com b697288da5 Added support for char, wchar and wstring types.
Fixed long long nits.
Make methods pure virtual.
Use pointers and not references.
Remove useless header.c.
1998-11-25 19:12:50 +00:00
shaver%netscape.com 6807c3fcf4 C++ class decls need a semicolon 1998-11-25 04:54:02 +00:00
shaver%netscape.com c373687100 Added input callback, in preparation for autogenerating __declspec(inhibit)
and doing the doc comment thing.
Generate method declarations.
More stdout -> state->file fixes.
1998-11-25 04:19:59 +00:00
shaver%netscape.com b68f23e3f5 Generate getter/setter/`is'er for attributes.
Report errors (and warnings).
Send output to state->file properly, instead of stdout (although state->file
is always stdout right now!).
1998-11-24 23:16:49 +00:00
shaver%netscape.com 3f1382e38f first xpidl stuff 1998-11-23 21:02:31 +00:00