Commit Graph

93 Commits

Author SHA1 Message Date
benjamin%smedbergs.us
08887664c9 Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
2006-05-03 16:11:14 +00:00
mkaply%us.ibm.com
1a19fc9e12 #3011064
r=mkaply, sr=mkaply (OS/2 only)
Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2
2006-03-08 19:56:32 +00:00
timeless%mozdev.org
37681661b1 Bug 327997 warning C4005: 'EXTERN_C' : macro redefinition nscore.h and winnt.h
r=darin sr=darin
2006-03-06 01:49:10 +00:00
benjamin%smedbergs.us
8b72bb0f97 Bug 325229 part 1 - standalone glue registers exit routine which is called after module unload; also fixes bug 317481 - C API for nsTraceRefcnt; also fixes bug 318622 - Make nsTraceRefcntImpl::SetActivityIsLegal work properly and turn it on; design review by dbaron, r=darin 2006-02-10 15:00:36 +00:00
mark%moxienet.com
18681d809c 323337 Use fastcall on Mac OS X x86: __attribute__(regparm(3)). r=josh 2006-01-23 20:11:08 +00:00
bsmedberg%covad.net
8c240e5441 Bug 321847 - C++-style comments in C header (bah! this is #if 0 it shouldn't matter) 2006-01-03 16:54:26 +00:00
bsmedberg%covad.net
a4d3866df3 Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver 2005-11-10 14:43:22 +00:00
bsmedberg%covad.net
a7253270ad Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree. 2005-11-08 18:17:49 +00:00
bsmedberg%covad.net
5a3dee9942 Bug 307168 - Add configure test for GCC bug that prevent the pragma-visibility stuff from working properly on some configurations, and also clean up usages of HAVE_VISIBILITY_PRAGMA which should really be HAVE_VISIBILITY_ATTRIBUTE r=roc+wolfiR, previous revisions reviewed by bryner 2005-11-02 14:14:18 +00:00
joshmoz%gmail.com
275e8624be don't use regparm on i386 Mac OS X. Patch by Apple Computer, Inc. r=josh r=smfr sr=bsmedberg a=bsmedberg 2005-07-21 19:02:52 +00:00
shaver%mozilla.org
63a3c5efc3 Bug 269823: invalid casts prevent compilation on 64-bit platforms with gcc4.
Patch from falk@debian.org, r=darin, sr+a=shaver.
2005-07-20 13:12:13 +00:00
bsmedberg%covad.net
c212b869b8 Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR, try #2 - Re-landing this in such a way that we're not going to break non-xulrunner builds on mac with xcode < 1.5 until we have the tinderboxen and official build instructions upgraded properly (see the XXXNote in xpcom/sample/Makefile.in, and the continued ifdef MOZ_ENABLE_LIBXUL hack in config/autoconf.mk.in around MOZ_FIX_LINK_FLAGS). r=darin a=asa 2005-07-01 12:24:07 +00:00
bsmedberg%covad.net
9b68fa2754 Backout bug 298047 per Chase as it breaks some downrev mac systems unexpectedly. 2005-06-30 02:04:23 +00:00
bsmedberg%covad.net
d7b586a56b Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR (this patch covers everything except dynamic linking) r=darin a=asa (The file xpcom/sample/nsTestSample.cpp moved to xpcom/sample/program/nsTestSample.cpp) 2005-06-29 18:53:30 +00:00
joshmoz%gmail.com
f2954af59f remove XP_MAC code from xpcom/base. r=josh r=dougt a=bsmedberg 2005-06-24 00:24:42 +00:00
bzbarsky%mit.edu
205abaab34 Don't use C++ comments in a file included from C code. r+sr+a=dbaron 2005-04-28 20:57:42 +00:00
dbaron%dbaron.org
5d312ec4b3 Make it possible for apps, extensions, and vendors to all add tokens to the User-Agent string (using default preferences) without overwriting each other. b=274928 r+sr=darin a=mkaply 2005-04-07 18:11:59 +00:00
bsmedberg%covad.net
7e03c0b224 Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin 2005-04-06 03:35:24 +00:00
darin%meer.net
a87b534479 fixes bug 286147 "switch from .xulapp to application.ini" r=bsmedberg 2005-03-28 19:36:24 +00:00
bryner%brianryner.com
d9626f6746 Add support for using gcc's visibility pragma to treat all function and method declarations as "hidden" unless declared otherwise. Create wrappers for system headers that cause them to be treated as default-visibility declarations. This gives a substantial code size and performance win on compilers that support it, and should show up on the gruff tinderbox. Bug 273336, r=darin sr=dbaron. 2004-12-15 05:52:44 +00:00
darin%meer.net
abcd15ca39 fixes bug 266006 "xpcom/glue should not declare methods with NS_COM" r=bsmedberg 2004-10-29 19:43:51 +00:00
mkaply%us.ibm.com
ae6ca1e908 This stuff doesn't work on OS/2 and is causing thousands of warnings errors 2004-07-22 20:27:48 +00:00
dbaron%dbaron.org
13588951d2 Only use __attribute__ on gcc 3 or higher. Fixing bustage. 2004-07-14 23:43:15 +00:00
bryner%brianryner.com
23089547be Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron. 2004-07-14 22:14:34 +00:00
gerv%gerv.net
31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
neil%parkwaycc.co.uk
5a5283ca12 Supplementary patch to bug 227537 because some versions of gcc don't accept all placements of the visibility attribute r=bryner sr=blizzard a=asa 2004-03-25 19:55:16 +00:00
bryner%brianryner.com
146a922871 Add NS_LIKELY and NS_UNLIKELY macros that can be used to give the compiler branch probability information. Make NS_SUCCEEDED and NS_FAILED use these macros so that we optimize for the success case. Bug 236753, r+sr=dbaron. 2004-03-07 23:32:08 +00:00
bryner%brianryner.com
6e68ebaa46 Second try at enabling hidden visibility for NS_IMETHOD on ELF platforms (bug 227537). r+sr=dbaron for the changes. 2004-02-04 04:55:57 +00:00
bryner%brianryner.com
e93d497a66 Turn off visibility until I can figure out how to fix this for older gcc's that won't accept visibility=default 2004-02-03 09:09:41 +00:00
bryner%brianryner.com
0ca4d12034 Make NS_IMETHOD set hidden symbol visibility by default on ELF platforms. This is always desirable for virtual methods implemented in XPCOM component libraries, since it's impossible to reference the symbol from outside of the library. The behavior can be overridden as needed, such as a base class in a shared library that's linked against. For more details, see the comments in nscore.h and bug 227537. r=dbaron, sr=darin. 2004-02-03 08:32:33 +00:00
mkaply%us.ibm.com
3686d6833a #215581
r=mkaply, sr=blizzard (platform specific)
Changes to get GCC 3.2.2 working on OS/2 - this set is OS/2 only changes
Also remove some VACPP references
2003-09-15 21:55:23 +00:00
bryner%brianryner.com
00aafbfddd Use typeof() to implement NS_STDCALL_FUNCPROTO so that pointer-to-member types using stdcall work on mingw gcc. Bug 203137, r=cls, sr=dbaron. 2003-09-15 04:20:20 +00:00
bryner%brianryner.com
00b3a1d601 Instead of repeating the same code for each event and listener interface, have nsEventListenerManager::HandleEvent use a table containing the event, interface and method, and array bits. This cuts out a _lot_ of redundant code. The checkin also adds the NS_IMETHOD_CALLBACK #define, which can be used to declare pointer-to-member types using stdcall. Bug 217124, r=jst, sr=dbaron. 2003-09-11 06:31:58 +00:00
seawood%netscape.com
cab1558f57 Move xpcom specific defines from mozilla-config.h into xpcom-config.h.
Bug #210409 r=dougt
2003-06-27 04:12:16 +00:00
seawood%netscape.com
7a7cda041f Use the documented __declspec keyword instead of _declspec.
Bug #206934 r=dougt
2003-06-24 22:12:37 +00:00
bsmedberg%covad.net
581fce1582 Bug 209622 - bustage fix for stupid compilers (Sun WS and DEC OSF1) -
also remove unused configure test. r=dbaron sr=alecf
2003-06-19 18:42:23 +00:00
seawood%netscape.com
d7aeeb2bde Add explicit dependency upon mozilla-config.h
Bug #200574 r=dougt sr=dbaron
2003-04-04 04:50:58 +00:00
dbaron%dbaron.org
a408871292 Use an autoconf test to set HAVE_CPP_TYPENAME. (fix bustage on newer versions of the IRIX native compiler) b=199625 r=bbaetz sr=brendan a=asa 2003-03-31 21:30:33 +00:00
cls%seawood.org
d1079607df XP code changes required for mingw landing.
Add NS_STDCALL macros for functions that require stdcall declarations.
Add NS_STDCALL_FUNCPROTO macro for stdcall function prototype typedefs.
Bug #134113 r=dougt sr=dbaron
2003-03-07 06:07:56 +00:00
bbaetz%acm.org
9d56f76447 Bug 189661 - fix configure.in tests for gcc-3.4 (cvs)
r=cls, sr=dbaron
2003-02-22 09:02:02 +00:00
seawood%netscape.com
320e3d6e47 Add compiler test for external template specializations in c++ (assumed on for msvc)
Thanks to Benjamin Smedberg <bsmedberg@covad.net> for the patch.
Bug #184002 r=scc
2002-12-17 22:11:34 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dougt%netscape.com
bd082469e9 nscore.h has unreachable MSVC #defines (mutually exclusive nested #if), r=dbaron sr=scc a=superfly asa 2002-07-12 21:08:56 +00:00
dougt%netscape.com
9effd97abe 151604 - XPCOM Glue standalone stupport of dynamically loading symbols. r=dp/rpotts sr=alecf 2002-06-21 19:58:54 +00:00
dougt%netscape.com
40642fc34c 130405. Makes the xpcom glue library usable. Updates XPCOM Samples. Adds requires lines to a few implict string/category consumers sr=alecf, sr=brendan@mozilla.org a=asa@mozilla.org 2002-03-21 23:43:21 +00:00
jdunn%netscape.com
cd34d9887d Change certain AIX ifdefs to AIX_XLC_364 since these ifdefs are only
needed for AIX's xlC 3.6.4 compiler.  Add test to configure to check
compiler version.  NOTE: also adding hpux and aix check for keyboardutils.
r=cls@seawood.org
# 119179
2002-01-25 15:07:38 +00:00
timeless%mac.com
61a97fd94a Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
gerv%gerv.net
4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
mkaply%us.ibm.com
86343acb93 OS/2 bustage - we don't use _System 2001-09-27 16:04:44 +00:00
dougt%netscape.com
8d512061e8 Landing nsISupports changes. Freezes nsISupports.idl and nsrootidl.idl. r=valeski@netscape.com, sr=rpotts@netscape.com bug 98281 2001-09-27 03:43:00 +00:00