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

10 Коммитов

Автор SHA1 Сообщение Дата
mccabe%netscape.com 3ad4f337ee Fix 13413 - Require that the targets of length_is attributes have unsigned long type. There were a number of violations of this in the tree, so it turns out this was a useful one. Also add checks for missing parameters, length_is parameters that point to themselves, etc.
Fix 8833 - Allow typedefs in const declarations.

Fix several warnings.

Remove a huge chunk of #if 0 code in in xpidl_typelib.c (that had accumulated subsequent changes!)
2000-04-28 11:14:29 +00:00
mccabe%netscape.com b48d3f3c6c - Add preliminary code for a documentation backend. Hopefully someone will want to extend it...
- Add a compile-time check requiring non-scriptable (because they're native) attributes to be marked [noscript] within [scriptable] interfaces.  This mirrors an existing check for methods, and may save some hair-pulling for script authors.  Partial fix to 11454.

- Emit a sample implementation (#ifdef 0) into the generated .h file that component authors can copy and use as the start of their implementation.  Code courtesy jband.

r=jband, r=mccabe
2000-03-18 01:30:35 +00:00
mccabe%netscape.com 4c9d90c5c7 Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts.  Thanks to bratell@lysator.liu.se for finding this and confirming the fix.

* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.

* Restore Mac hack to fix \r to \n, requested by Beard.

* Make 'const decl must be short or long' warning into error for typelib mode.  This mirrors an existing error in header mode.

* Fix up various aspects of xpidl, including:

- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.

- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions.  Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null.  Move backends to new API.

- Rename a few structs more logically.

- Add a new list to track files included from the base .idl file, for generated #includes in output header file.  This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.

- Various fixes to quiet xpidl warnings.

- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.

r=jband
2000-01-12 01:46:21 +00:00
dmose%mozilla.org 142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
brendan%netscape.com e5596bb3ed Checkpoint xpidl -m stub work. 1999-02-17 01:17:52 +00:00
brendan%netscape.com fe8a88eaf3 prep for -m stub; misc code cleanups. 1999-02-16 05:10:40 +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 3f1382e38f first xpidl stuff 1998-11-23 21:02:31 +00:00