397 Commits

Author SHA1 Message Date
mkaply%us.ibm.com
8da14785ea # 37239
r= dougt@netscape.com
OS/2 bring up continues - need an include for EMX only


git-svn-id: svn://10.0.0.236/trunk@67769 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 22:27:59 +00:00
mccabe%netscape.com
6da6024f35 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!)


git-svn-id: svn://10.0.0.236/trunk@67514 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 11:14:29 +00:00
jband%netscape.com
723651965b landing typelib loading improvements. bug 30753
git-svn-id: svn://10.0.0.236/trunk@66539 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 08:52:05 +00:00
jband%netscape.com
3d85343708 Fix sorting bug reported by Michael Kaply <mkaply@us.ibm.com>. There was a bad assumption that qsort would produce the exact same ordering on two arrays with elements of different size even when some string keys compare the same. The fix is to use the address of the string keys as a fallback in the compare function. This works right because the two arrays have diffrent elements, but they contain pointers to shared strings. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@66320 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:57:57 +00:00
cls%seawood.org
a26020ddae Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287
git-svn-id: svn://10.0.0.236/trunk@65143 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 04:46:38 +00:00
jband%netscape.com
dfaa91c993 renaming 'readonly' to 'read_only' because it turns out that 'readonly' is a reserved word for some compilers (e.g. on OpenVMS) and they break.
git-svn-id: svn://10.0.0.236/trunk@64757 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 10:34:10 +00:00
cls%seawood.org
ccb881473c Oops. Forgot a CROSS_COMPILE ifdef.
git-svn-id: svn://10.0.0.236/trunk@64731 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 08:00:08 +00:00
cls%seawood.org
36f0033393 Fix cross-compiling rules so that we can build both the host & target version of our "internal" build tools.
Added .ho suffix for host objects.
Added rules for HOST_PROGRAM, HOST_LIBRARY & HOST_SIMPLE_PROGRAMS.
When cross-compiling, use the host_ versions of nsinstall, xpidl & xpidl_link and install host targets under $(DIST)/host .
Bug #11890


git-svn-id: svn://10.0.0.236/trunk@64719 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:18:52 +00:00
beard%netscape.com
8b4df32034 changes to build as MPW tools. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@64443 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:14:02 +00:00
jband%netscape.com
97ad980ef8 adding new file - not part of build
git-svn-id: svn://10.0.0.236/trunk@64329 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 05:10:05 +00:00
beard%netscape.com
00b4ace39f added targets for MPW tool (not part of default build)
git-svn-id: svn://10.0.0.236/trunk@64304 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:29:34 +00:00
beard%netscape.com
7d7ff306c9 prefix file for MPW tools
git-svn-id: svn://10.0.0.236/trunk@64303 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:27:15 +00:00
jim_nance%yahoo.com
e0700bf12e Added code to put a U after unsigned numbers. This gets rid of the
"decimal constant is so large its unsigned" warnings.
r=shaver


git-svn-id: svn://10.0.0.236/trunk@63978 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 03:19:34 +00:00
sfraser%netscape.com
6f132223fd Bump up the intial hash table size in a bunch of places to avoid resizing the hash later. r=scc
git-svn-id: svn://10.0.0.236/trunk@63690 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:43:48 +00:00
mccabe%netscape.com
163180b9f8 Fix to 11454
Respect [noscript] property for attributes by setting the attribute as hidden in the emitted typelib.

r=jband


git-svn-id: svn://10.0.0.236/trunk@63382 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 07:55:43 +00:00
mccabe%netscape.com
ec89277669 Fix bustage; replace strdup (no prototype on mac) with call to (existing!) xpidl_strdup.
git-svn-id: svn://10.0.0.236/trunk@63361 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 02:29:23 +00:00
mccabe%netscape.com
554699a6de - 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


git-svn-id: svn://10.0.0.236/trunk@63355 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 01:30:35 +00:00
cls%seawood.org
6573bbb91d Finally following warren's lead from "last year", the libs phase has been removed from the build. Directories had to be ordered and in some cases, traversed after a subsequent module was built.
Fixed the recursive makes into GtkMozilla so that they will report build failures like the other dirs.
Removed LIBS_NEQ_INSTALL variable and associated ifdefs.


git-svn-id: svn://10.0.0.236/trunk@62056 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 13:29:03 +00:00
cls%seawood.org
446ac4ba9b Use HOST_AR & HOST_RANLIB when building host version of libxpt. Needed for cross-compiling. Bug #11890
git-svn-id: svn://10.0.0.236/trunk@62052 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 12:29:47 +00:00
cls%seawood.org
dd1641c1b8 Use EXPORT_XPT_API define when building libraries. Needed for mingw32.
git-svn-id: svn://10.0.0.236/trunk@62051 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 12:27:58 +00:00
bryner%uiuc.edu
fb74001790 Adding a new flag to the Win32 build system. Set DISABLE_TESTS=1 to skip
building in the tests directories.  Should not affect the build at all if
you do not have this environment variable.  r=leaf.


git-svn-id: svn://10.0.0.236/trunk@61647 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 04:12:40 +00:00
scc%netscape.com
dcee2e659d Pro5 update
git-svn-id: svn://10.0.0.236/trunk@60002 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 23:06:04 +00:00
scc%netscape.com
bb02d934b0 Fixed access paths for upcoming switch to Pro5, see bug #25949. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@59333 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 00:49:16 +00:00
mccabe%netscape.com
efcc5a6a91 Rework xpidl_idl to not use a circular buffer. This fixes many problems with buffer boundaries. Fixes
9716 unterminated %{ escape causes endless loop

Clean up memory handling and other aspects of xpidl. Fixes
        11058 bad free in xpidl
        13464 memory leak in xpidl

Store doc comments in IDL-processing phase, and emit them into generated header files.  Fixes
        24734 xpidl should emit doc comments

Add error towards fixing 24965, and fix 13100 'xpidl should error on multiple inheritance'

r=jband


git-svn-id: svn://10.0.0.236/trunk@59042 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 08:28:48 +00:00
mccabe%netscape.com
6444e51a6e Fix problem with generated consts in .h files for OS/2 - also handle the internal const value more sensibly, and lose wrong 'is_long' distinction.
Thanks to Henry Sobotka <sobotka@axess.com> for finding this problem and suggesting a fix.

r=mccabe


git-svn-id: svn://10.0.0.236/trunk@58077 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 05:16:48 +00:00
beard%netscape.com
4e41ec610f bug fix for bug #11199, should remove partially created output file.
git-svn-id: svn://10.0.0.236/trunk@57992 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 04:13:05 +00:00
jband%netscape.com
86073f04b4 Fix to deal with arrays of interface pointers. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@57638 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 05:54:40 +00:00
mccabe%netscape.com
4ece6c81dc Reinstating backed-out fix to 20833 from earlier, this time with a change that seems to work on solaris and mac.
git-svn-id: svn://10.0.0.236/trunk@57546 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 13:33:40 +00:00
mccabe%netscape.com
47cfe06ecb Reverting const-generation code that seems to be trouble for Solaris.
git-svn-id: svn://10.0.0.236/trunk@57507 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 03:34:30 +00:00
sfraser%netscape.com
3026ce39f6 Fixing bustage by ensuring that xpidl_utils.c is only in the compiler target. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@57504 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 03:09:33 +00:00
mccabe%netscape.com
129ccc5ea1 changing #include "xpt_stuct.h" to <xpt_struct.h> b/c I don't think Mac is finding the file.
git-svn-id: svn://10.0.0.236/trunk@57501 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 02:48:06 +00:00
mccabe%netscape.com
4e6799d4d5 added files: mozilla/xpcom/typelib/xpidl/xpidl_util.c
git-svn-id: svn://10.0.0.236/trunk@57490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 01:47:05 +00:00
mccabe%netscape.com
ecfc9775e8 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


git-svn-id: svn://10.0.0.236/trunk@57488 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 01:46:21 +00:00
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