Commit Graph

364 Commits

Author SHA1 Message Date
warren%netscape.com
eb9a891946 Eliminated the libs build pass.
git-svn-id: svn://10.0.0.236/trunk@54523 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-28 03:05:01 +00:00
frankm%eng.sun.com
fcdf12aad5 [Bugs 18486, 18488; r=mccabe] XPIDL->Java: always make first char of methods lowercase, translate PRBool to Java boolean
git-svn-id: svn://10.0.0.236/trunk@54358 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 02:08:34 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
colin%theblakes.com
a3feb440b1 Only define MDCPUCFG if HOST_NSPR_MDCPUCFG is defined. r=cls
git-svn-id: svn://10.0.0.236/trunk@52287 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:03:15 +00:00
mccabe%netscape.com
f192186834 Undo overly-hasty backout. This reinstates part of my recent checkin.
git-svn-id: svn://10.0.0.236/trunk@51939 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 03:44:38 +00:00
beard%netscape.com
98fb6ecb62 make warnings not terminate build. fix bustage, r=mccabe
git-svn-id: svn://10.0.0.236/trunk@51934 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:44:34 +00:00
mccabe%netscape.com
8522d5db78 Debust mac-specific \r-related tree breakage.
git-svn-id: svn://10.0.0.236/trunk@51927 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 01:28:59 +00:00
mccabe%netscape.com
cde9269c1b Various fixes to xpidl. Note that this checkin will cause a rebuild of everything that depends on nsISupports.h. Fixes courtesy Mike Shaver, with small tweaks by McCabe. r=shaver, r=mccabe.
- Fix to bug 17013; have xpidl produce an error when encountering a native declaration without an associated (c++-name).

- remove many DEBUG_shaver lines.

- provide xpidl_tree_warning as a fallback for libIDL versions for which IDL_tree warning is bad, and NULL-proof our message callback function.  Also remove a 1k buffer limit from the message callback function.

- make enum in IDL files an error.  We don't support it, and love consts instead.

- Fix to 12684; don't allow [retval] parameter + return or multiple [retval] parameters.

- Fix to 13390; make non-{short,long} const a fatal error.


git-svn-id: svn://10.0.0.236/trunk@51924 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:37:39 +00:00
jband%netscape.com
37f1655b17 xpidl compiler was failing to complain that it is an error to use [shared] with 'inout' params. (no bug was filed) r=mccabe
git-svn-id: svn://10.0.0.236/trunk@49802 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:23:35 +00:00
kipp%netscape.com
9825c95a9e Button up some shutdown memory leaks
git-svn-id: svn://10.0.0.236/trunk@49495 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:43:35 +00:00
briano%netscape.com
b0d10029b5 Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49262 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:19:10 +00:00
jband%netscape.com
5399c28b6e fix a warning
git-svn-id: svn://10.0.0.236/trunk@48335 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:27:51 +00:00
jband%netscape.com
f6186afc2f - Changed the interface for getting the interface_is argnum.
- Merged the typelib types for array and array_with_length.
- Added typelib types for string_with_size and wstring_with_size


git-svn-id: svn://10.0.0.236/trunk@48304 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:50:28 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
briano%netscape.com
945d83af9f General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:12:56 +00:00
jband%netscape.com
b9d4c03546 add arrays to xpidl and typelibs. got rid of vararg support scheme
git-svn-id: svn://10.0.0.236/trunk@46934 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 05:20:39 +00:00
jband%netscape.com
211e2ec70c fix shaver's broken pool growing code. remove unused bitwise code.
git-svn-id: svn://10.0.0.236/trunk@46914 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 01:40:22 +00:00
jband%netscape.com
1269e69f92 get rid of declarations for unused code and broken code
git-svn-id: svn://10.0.0.236/trunk@46913 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 01:39:22 +00:00
shaver%netscape.com
4eb0eaf7ef fix for 8060 and switch to iterative annotation processing to reduce stack suck, a=mcafee, r=mccabe
git-svn-id: svn://10.0.0.236/trunk@46693 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 02:48:32 +00:00
mccabe%netscape.com
2b644a1e9e Backed out offending change for now. Busted windows and mac (xpidl returns failure.)
git-svn-id: svn://10.0.0.236/trunk@46277 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 01:51:56 +00:00
mccabe%netscape.com
28ff5cd0ab Fixes to compile on DEC (gargamel) courtesy briano; remove XPT_ASSERT from macros, and remove unused macros from xpt_struct.c.
git-svn-id: svn://10.0.0.236/trunk@46269 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 00:45:13 +00:00
cls%seawood.org
6fb7827186 Forgot to run ranlib on libhostxpt.a
git-svn-id: svn://10.0.0.236/trunk@46134 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 22:10:18 +00:00
cls%seawood.org
d587f819be Since libxpt is used by both xpidl and libxpcom, we need to create a duplicate libhostxpt that is built by HOST_CC for xpidl & friends.
git-svn-id: svn://10.0.0.236/trunk@46069 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-05 20:48:30 +00:00
cls%seawood.org
924d972d2d Simple check to see if we can get rid of these osf1 cc compiler errors on the ports page. Sorry about causing the world to be rebuilt.
git-svn-id: svn://10.0.0.236/trunk@45877 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 11:24:00 +00:00
cls%seawood.org
c77d331bcf Oops. This file shouldn't have INTERNAL_TOOLS set.
git-svn-id: svn://10.0.0.236/trunk@45867 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 09:11:12 +00:00
cls%seawood.org
392420849a Fixed the use of HOST_NSPR_MDCPUCFG so that the build doesn't break if it is not defined.
git-svn-id: svn://10.0.0.236/trunk@45828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 05:03:40 +00:00
jband%netscape.com
e1161ebb6d fix for bug 12237 - add a flag in typelib to indicate methods thatare not xpcom compliant. Stealing bit that was originally intended for varargs
git-svn-id: svn://10.0.0.236/trunk@45576 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 00:01:08 +00:00
jband%netscape.com
ceaefeff7e fix an initialized warning
git-svn-id: svn://10.0.0.236/trunk@45565 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 23:49:02 +00:00
cls%seawood.org
f5fda29d25 Make xpidl build as an internal tool
git-svn-id: svn://10.0.0.236/trunk@45500 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 20:34:10 +00:00
cyeh%netscape.com
c6342ee432 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
git-svn-id: svn://10.0.0.236/trunk@45379 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 00:54:34 +00:00
brendan%mozilla.org
adac67ff2b Improve diagnostic for codefrag vs. NS_DECL_IFOO warning.
git-svn-id: svn://10.0.0.236/trunk@45032 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 05:16:05 +00:00
brendan%mozilla.org
d87f3f7b04 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).


git-svn-id: svn://10.0.0.236/trunk@44456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 05:26:25 +00:00
mccabe%netscape.com
5fdc371b7b 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.


git-svn-id: svn://10.0.0.236/trunk@44453 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 05:05:48 +00:00
slamm%netscape.com
3935e6e01e Removed items from DIRS that do not exist.
git-svn-id: svn://10.0.0.236/trunk@44341 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:26 +00:00
mccabe%netscape.com
86cd5841a3 Add ## between _to and function name in generated NS_FORWARD_NSIFOO macro
git-svn-id: svn://10.0.0.236/trunk@44281 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 10:00:52 +00:00
mccabe%netscape.com
23cc1b553a Don't generate 'void' as a parameter in call portion of NS_FORWARD_NSIFOO macro. Whoops.
git-svn-id: svn://10.0.0.236/trunk@44055 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:18:21 +00:00
mccabe%netscape.com
38eef6b4e2 Make a new XPIDL_WARNING macro to generalize the check against using IDL_tree_warning when compiled against libIDL 0.6.5.
git-svn-id: svn://10.0.0.236/trunk@44032 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 01:10:14 +00:00
mccabe%netscape.com
7d3754b0ed 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.


git-svn-id: svn://10.0.0.236/trunk@43974 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:04:33 +00:00
mccabe%netscape.com
76a43625ec 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.


git-svn-id: svn://10.0.0.236/trunk@43796 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:08:40 +00:00
shaver%netscape.com
1cdc557f6b don't use IDL_tree_warning on 0.6.5, it crashes sometimes.
r=alecf, a=mcafeee


git-svn-id: svn://10.0.0.236/trunk@43687 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:09:08 +00:00
mccabe%netscape.com
9604bce82d 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...


git-svn-id: svn://10.0.0.236/trunk@43583 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:02:08 +00:00
briano%netscape.com
65bd94fb99 Now it will handle the obscure case where sprintf returns a string instead of an int. Reviewed by mccabe and jband. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@43343 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 03:11:10 +00:00
frankm%eng.sun.com
54b8bc3226 Add nsID constant to IDL-generated Java interface
git-svn-id: svn://10.0.0.236/trunk@43018 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:10:06 +00:00
mccabe%netscape.com
1999447bdb 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.


git-svn-id: svn://10.0.0.236/trunk@42960 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 12:18:01 +00:00
shaver%netscape.com
617d646666 stop tripping myself up
git-svn-id: svn://10.0.0.236/trunk@42943 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:47:38 +00:00
mccabe%netscape.com
b72d38369e Fix to 11451.
Stop coredump on bad argument name in [iid_is(bogus)]; add != NULL safety check to loop.


git-svn-id: svn://10.0.0.236/trunk@42745 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 09:34:22 +00:00
mccabe%netscape.com
1302f9251b Fixes for 'warning: unsigned value < 0 is always 0' warnings.
git-svn-id: svn://10.0.0.236/trunk@42650 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 09:32:45 +00:00
mccabe%netscape.com
19ca172d42 Made use of ... varargs result in failure, as we don't currently seem
to support it.


git-svn-id: svn://10.0.0.236/trunk@42435 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 10:25:16 +00:00
jband%netscape.com
a424b826f2 fix xpidl compiler failure when a block of 'raw' stuff straddles a buffer block boundary
git-svn-id: svn://10.0.0.236/trunk@42424 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:57:53 +00:00
mccabe%netscape.com
1ebd99e9fb 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.


git-svn-id: svn://10.0.0.236/trunk@41809 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 11:19:30 +00:00