Commit Graph
340 Commits
Author SHA1 Message Date
cyeh@netscape.com cf7c4851ae Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
brendan@mozilla.org 285900ac93 Improve diagnostic for codefrag vs. NS_DECL_IFOO warning. 1999-08-29 05:16:05 +00:00
brendan@mozilla.org b3c1a9c6ea Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
mccabe@netscape.com c9abc694ad Fixed problem with getters/setters in generated NS_FORWARD_NSIFOO macro. Thanks to David Bienvenu for catching this.
Fixed {-placement formatting nit.  Thanks to Brendan Eich for catching this.
1999-08-25 05:05:48 +00:00
slamm@netscape.com 438e0e2988 Removed items from DIRS that do not exist. 1999-08-24 21:45:26 +00:00
mccabe@netscape.com 4496b51141 Add ## between _to and function name in generated NS_FORWARD_NSIFOO macro 1999-08-24 10:00:52 +00:00
mccabe@netscape.com 428a238bcb Don't generate 'void' as a parameter in call portion of NS_FORWARD_NSIFOO macro. Whoops. 1999-08-22 11:18:21 +00:00
mccabe@netscape.com 9b8c51a1fa Make a new XPIDL_WARNING macro to generalize the check against using IDL_tree_warning when compiled against libIDL 0.6.5. 1999-08-22 01:10:14 +00:00
mccabe@netscape.com 0d67e150a5 Generate NS_FORWARD_NSIFOO(_to) macro to facilitate declaring forwarding implementations for a given interface.
Fix bug where both GetFoo and SetFoo prototypes were generated into the NS_DECL_NSIFOO macro for readonly attributes.  Thanks go to jband for catching this.
1999-08-21 07:04:33 +00:00
mccabe@netscape.com ceba99c529 Fix problem with generating \ \n for getters and setters, and move generated NS_DECL_NSIFOO to below the interface.
Thanks to jband for catching this problem.
1999-08-20 09:08:40 +00:00
shaver@netscape.com 518c93bf59 don't use IDL_tree_warning on 0.6.5, it crashes sometimes.
r=alecf, a=mcafeee
1999-08-19 21:09:08 +00:00
mccabe@netscape.com 12d0979a44 Changes to the xpidl compiler to support generating an 'NS_DECL_NSIFOO' macro when generating the nsIFoo interface, which provides a shorthand to declare all of the methods of that interface.
Also included are various architectural changes to support this, (which required descending the interface and method subtree of the IDL parse tree an extra time) including abstracting out the write_method_signature and write_attr_accessor methods so that they can be called both when generating the interface and when generating the macro.

Purged passing the single TreeState parameter from several leaf functions, and broke it out into parameters foo_tree and output file.  This saved a lot of tree->state twiddling when calling tree-descent functions.

This checkin will cause depend builds to rebuild most of the tree, so be patient...
1999-08-19 13:02:08 +00:00
briano@netscape.com e770c72193 Now it will handle the obscure case where sprintf returns a string instead of an int. Reviewed by mccabe and jband. Approved by chofmann. 1999-08-14 03:11:10 +00:00
frankm@eng.sun.com b5485d988f Add nsID constant to IDL-generated Java interface 1999-08-10 21:10:06 +00:00
mccabe@netscape.com 2399f2b095 Changes to the xpidl compiler -
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].

This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.

As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout.  As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.
1999-08-10 12:18:01 +00:00
shaver@netscape.com 5d1598b22f stop tripping myself up 1999-08-10 06:47:38 +00:00
mccabe@netscape.com 2076d528d2 Fix to 11451.
Stop coredump on bad argument name in [iid_is(bogus)]; add != NULL safety check to loop.
1999-08-09 09:34:22 +00:00
mccabe@netscape.com 371be5a66e Fixes for 'warning: unsigned value < 0 is always 0' warnings. 1999-08-07 09:32:45 +00:00
mccabe@netscape.com e2c0e50606 Made use of ... varargs result in failure, as we don't currently seem
to support it.
1999-08-06 10:25:16 +00:00
jband@netscape.com d3f029497b fix xpidl compiler failure when a block of 'raw' stuff straddles a buffer block boundary 1999-08-06 07:57:53 +00:00
mccabe@netscape.com 73ca5fd9a5 Further warning enhancements engendered by 10693.
- Added xpidl_sprint_iid method for printing an nsID to a string.

- Removed "this is a gross hack" code for parsing and printing iids, and replaced with calls to xpidl_sprint_iid

- Made write_classname_iid_define() void, and removed cluttering tests against its failure.

- Cleaned up.
1999-08-02 11:19:30 +00:00
mccabe@netscape.com 858428ebbf Improved abstraction of uuid parsing; uuid parsing function now no longer understands "" to mean 'the uuid consisting of only 0s.' Also broke the function out into xpidl_idl.c (where utility functions live) towards reusing it in xpidl_headers as well.
Removed outdated reference to (resolved) bug 5872.
1999-08-02 09:46:57 +00:00
mccabe@netscape.com af2166c608 Fix to 10693. Error on malformed uuid (currently we just check for a uuid of the wrong length) rather than failing silently. 1999-08-02 09:35:28 +00:00
mccabe@netscape.com 38e3e41ecc Fix to 9596.
Change several allocations to behave safely when we're linking 0 interfaces.  This also allows xpt_link to be linked against Electric Fence, which will doubtless discover other problems...

Thanks to kherron@sgum.mci.com for the great patch!
1999-07-17 10:31:29 +00:00
beard@netscape.com 3433f97ae3 added java target to test java interface generation 1999-07-17 02:06:42 +00:00
beard@netscape.com ff755ecd99 java mode 1999-07-17 00:49:37 +00:00
beard@netscape.com da9acda324 now builds all components directly into "{Compiler}CodeWarrior Plugins" to work in the automated build. 1999-07-16 23:45:19 +00:00
beard@netscape.com fd7e07c918 fixed mac build bustage 1999-07-16 23:44:34 +00:00
slamm@netscape.com d2a84d714e Fix build warnings. 1999-07-16 20:06:37 +00:00
mang@subcarrier.org f1b451b631 suppress warnings about /* in comment 1999-07-07 07:54:02 +00:00
mang@subcarrier.org 84b7e283f2 libIDL expects the line number to be one more than we think it is.
Who are we to argue?
Fixes bug 5872 for header mode.
1999-07-07 04:42:33 +00:00
dveditz@netscape.com 0a73a2c84c nakefile cleanups 1999-07-02 13:42:17 +00:00
dveditz@netscape.com 563f6ffb1d Trying to fix Win32 dependencies. Lots of broken cut-n-paste makefiles 1999-07-02 11:50:19 +00:00
jdunn@netscape.com 748416f6c8 Fix HPUP and AIX build bustage by 'casting' the params. 1999-06-29 20:37:18 +00:00
mang@subcarrier.org 05ddef92bb Partially fixes bug 5872
Line numbers are now (only) off by one on Unix
Windows still reports incorrect line number if error is in an included file
Fixes bug 8183
Included files not found are now reported with proper line number
1999-06-28 21:10:18 +00:00
mccabe@netscape.com 64fd528055 Fix warning fix by casting void * (to go into a hashtable) as an unsigned int rather than as an int, which busts on platforms that have the high bit set for pointers.
Thanks to Duncan Wilcox <duncan@be.com> for catching this.
1999-06-26 08:17:00 +00:00
shaver@netscape.com 963c59575c um, that wasn't supposed to get checked in 1999-06-26 01:26:19 +00:00
shaver@netscape.com c2cf99bcd1 clean up className manipulation; no progids, though\! 1999-06-26 00:40:03 +00:00
mccabe@netscape.com abb80393b0 Add 'void' to generated method signatures that'd otherwise come out as foo(), to avoid the legacy C feature of having () disable typechecking. 1999-06-25 09:22:52 +00:00
frankm@eng.sun.com d26b7f1f07 Reintroduce Java backend to Unix build. 1999-06-23 01:31:04 +00:00
frankm@eng.sun.com a8b5dd5a6a Re-enable Java backend, this time with an updated Windows makefile. 1999-06-23 00:58:35 +00:00
mccabe@netscape.com 807658e116 Backing out buildsystem aspects of the Java interface backend to xpidl until we can land them safely xp. The xpidl_java.c backend remains. 1999-06-23 00:06:29 +00:00
frankm@eng.sun.com fb6073c26b First pass at generating Java interfaces from XPIDL 1999-06-22 22:39:50 +00:00
shaver@netscape.com 4c342d0ca8 flail lightly trying to fix build bustage 1999-06-15 15:21:00 +00:00
shaver@netscape.com 0016206b98 try to bix build bustage, and start on fixing 8183 1999-06-15 15:13:38 +00:00
shaver@netscape.com 3bc746325a fix 8184: don't get stuck on %{ that's not at the beginning of the line, and mind end of data 1999-06-15 14:17:21 +00:00
mccabe@netscape.com e63e1d4b84 Added a warning for using an (ignored) '%{' or '%{whatever' escape instead of using '%{C++'. 1999-06-15 11:18:03 +00:00
mccabe@netscape.com 6cfd58d24c Removed unused declaration for (cvs rm'ed) stub mode, and added an explanatory comment as to what 'basename' actually means. (Not what I thought...) 1999-06-15 09:22:04 +00:00
mccabe@netscape.com f9e7e95425 Fix number of arguments to the fprintf format string I changed yesterday. 1999-06-15 04:59:19 +00:00
shaver@netscape.com 4538b43454 xpidl_idl.c rewrite for improved maintenance, fixed bugs and whiter teeth 1999-06-15 03:07:44 +00:00