102 Commits

Author SHA1 Message Date
reed%reedloden.com
cb6cd5134f Bug 414063 - "annotate xpidl-generated c++ headers with attributes for scriptable and deprecated methods" [p=Pidgeot18@gmail.com (Joshua Cranmer) r=dbradley a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247621 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 11:00:59 +00:00
jag%tty.nl
6f53ddc9bb Fix bustage from previous checkin for bug 392055. Move #define of XPCOM_GLUE_AVOID_NSPR from nsISupportsImpl.h to nscore.h. r/a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@236872 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 20:33:33 +00:00
jwalden%mit.edu
0063483d40 Bug 348748 - Remove the NS_.*_CAST macros completely! r=bsmedberg, a=no-functionality-change
git-svn-id: svn://10.0.0.236/trunk@233983 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-05 22:31:12 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
mats.palmgren%bredband.net
77dba5b664 Make NS_LIKELY/NS_UNLIKELY accept pointers etc and always return 0 or 1. b=340244 r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@215416 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-18 00:48:56 +00:00
mats.palmgren%bredband.net
9a25d17ebb Backing out the NS_LIKELY/NS_UNLIKELY change to see if it fixes Tinderbox orange. b=340244
git-svn-id: svn://10.0.0.236/trunk@215062 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-09 22:52:19 +00:00
mats.palmgren%bredband.net
54cfbc0751 Make NS_LIKELY/NS_UNLIKELY accept pointers etc. b=340244 r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@215037 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-09 17:41:03 +00:00
cbiesinger%web.de
9768036c39 bug 348748 make NS_*_CAST always use C++-style casts (in preparation for
removing the macros altogether)
r=bsmedberg sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@209146 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-04 23:04:57 +00:00
benjamin%smedbergs.us
b0525d621c Bug 305949 - stop exporting nonfrozen XPCOM symbols when libxul is enabled, r=darin
git-svn-id: svn://10.0.0.236/trunk@206417 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 18:27:25 +00:00
benjamin%smedbergs.us
dd146efb7b 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


git-svn-id: svn://10.0.0.236/trunk@195900 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 16:11:14 +00:00
mkaply%us.ibm.com
d6529a89aa #3011064
r=mkaply, sr=mkaply (OS/2 only)
Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2


git-svn-id: svn://10.0.0.236/trunk@191996 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 19:56:32 +00:00
timeless%mozdev.org
3cd791230d Bug 327997 warning C4005: 'EXTERN_C' : macro redefinition nscore.h and winnt.h
r=darin sr=darin


git-svn-id: svn://10.0.0.236/trunk@191815 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-06 01:49:10 +00:00
benjamin%smedbergs.us
70d82c362b 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
git-svn-id: svn://10.0.0.236/trunk@189558 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 15:00:36 +00:00
mark%moxienet.com
a862a15819 323337 Use fastcall on Mac OS X x86: __attribute__(regparm(3)). r=josh
git-svn-id: svn://10.0.0.236/trunk@188060 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-23 20:11:08 +00:00
bsmedberg%covad.net
f53200dc8e Bug 321847 - C++-style comments in C header (bah! this is #if 0 it shouldn't matter)
git-svn-id: svn://10.0.0.236/trunk@186854 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-03 16:54:26 +00:00
bsmedberg%covad.net
7344fa60e3 Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver
git-svn-id: svn://10.0.0.236/trunk@184392 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 14:43:22 +00:00
bsmedberg%covad.net
112c33275c 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.
git-svn-id: svn://10.0.0.236/trunk@184304 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 18:17:49 +00:00
bsmedberg%covad.net
76775ba5fc 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
git-svn-id: svn://10.0.0.236/trunk@183915 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 14:14:18 +00:00
joshmoz%gmail.com
629699c509 don't use regparm on i386 Mac OS X. Patch by Apple Computer, Inc. r=josh r=smfr sr=bsmedberg a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176401 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 19:02:52 +00:00
shaver%mozilla.org
0656ce1457 Bug 269823: invalid casts prevent compilation on 64-bit platforms with gcc4.
Patch from falk@debian.org, r=darin, sr+a=shaver.


git-svn-id: svn://10.0.0.236/trunk@176326 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 13:12:13 +00:00
bsmedberg%covad.net
573e4d6f0c 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
git-svn-id: svn://10.0.0.236/trunk@175481 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 12:24:07 +00:00
bsmedberg%covad.net
e98012647a Backout bug 298047 per Chase as it breaks some downrev mac systems unexpectedly.
git-svn-id: svn://10.0.0.236/trunk@175375 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 02:04:23 +00:00
bsmedberg%covad.net
eda69baeea 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)
git-svn-id: svn://10.0.0.236/trunk@175333 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:53:30 +00:00
joshmoz%gmail.com
f3e632451e remove XP_MAC code from xpcom/base. r=josh r=dougt a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@175068 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 00:24:42 +00:00
bzbarsky%mit.edu
34cf5965da Don't use C++ comments in a file included from C code. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@172824 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 20:57:42 +00:00
dbaron%dbaron.org
a3f24ccfd1 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
git-svn-id: svn://10.0.0.236/trunk@171858 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 18:11:59 +00:00
bsmedberg%covad.net
f0ad878c0e Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin
git-svn-id: svn://10.0.0.236/trunk@171774 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 03:35:24 +00:00
darin%meer.net
2c2a166b53 fixes bug 286147 "switch from .xulapp to application.ini" r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@171271 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-28 19:36:24 +00:00
bryner%brianryner.com
59c875f83e 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.
git-svn-id: svn://10.0.0.236/trunk@166738 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 05:52:44 +00:00
darin%meer.net
ba445e81f5 fixes bug 266006 "xpcom/glue should not declare methods with NS_COM" r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@164620 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-29 19:43:51 +00:00
mkaply%us.ibm.com
d924b7872b This stuff doesn't work on OS/2 and is causing thousands of warnings errors
git-svn-id: svn://10.0.0.236/trunk@159688 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-22 20:27:48 +00:00
dbaron%dbaron.org
53e38ceb98 Only use __attribute__ on gcc 3 or higher. Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@159218 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 23:43:15 +00:00
bryner%brianryner.com
e372b2e9a3 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.
git-svn-id: svn://10.0.0.236/trunk@159199 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:14:34 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
neil%parkwaycc.co.uk
ab665b1b67 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
git-svn-id: svn://10.0.0.236/trunk@154263 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-25 19:55:16 +00:00
bryner%brianryner.com
d6862f7987 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.
git-svn-id: svn://10.0.0.236/trunk@153661 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 23:32:08 +00:00
bryner%brianryner.com
b4bcadff7f Second try at enabling hidden visibility for NS_IMETHOD on ELF platforms (bug 227537). r+sr=dbaron for the changes.
git-svn-id: svn://10.0.0.236/trunk@152272 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 04:55:57 +00:00
bryner%brianryner.com
23399a7583 Turn off visibility until I can figure out how to fix this for older gcc's that won't accept visibility=default
git-svn-id: svn://10.0.0.236/trunk@152213 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 09:09:41 +00:00
bryner%brianryner.com
34c56dea27 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.
git-svn-id: svn://10.0.0.236/trunk@152211 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 08:32:33 +00:00
mkaply%us.ibm.com
1d41bd9a94 #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


git-svn-id: svn://10.0.0.236/trunk@146927 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-15 21:55:23 +00:00
bryner%brianryner.com
210c2d536d 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.
git-svn-id: svn://10.0.0.236/trunk@146894 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-15 04:20:20 +00:00
bryner%brianryner.com
109b8ccff8 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.
git-svn-id: svn://10.0.0.236/trunk@146737 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 06:31:58 +00:00
seawood%netscape.com
69162837f6 Move xpcom specific defines from mozilla-config.h into xpcom-config.h.
Bug #210409 r=dougt


git-svn-id: svn://10.0.0.236/trunk@144208 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 04:12:16 +00:00
seawood%netscape.com
72290bc923 Use the documented __declspec keyword instead of _declspec.
Bug #206934 r=dougt


git-svn-id: svn://10.0.0.236/trunk@144112 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 22:12:37 +00:00
bsmedberg%covad.net
d7e6136c71 Bug 209622 - bustage fix for stupid compilers (Sun WS and DEC OSF1) -
also remove unused configure test. r=dbaron sr=alecf


git-svn-id: svn://10.0.0.236/trunk@143942 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 18:42:23 +00:00
seawood%netscape.com
d664a38a67 Add explicit dependency upon mozilla-config.h
Bug #200574 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@140675 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 04:50:58 +00:00
dbaron%dbaron.org
dd955ffdf2 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
git-svn-id: svn://10.0.0.236/trunk@140466 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 21:30:33 +00:00
cls%seawood.org
609a196b54 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


git-svn-id: svn://10.0.0.236/trunk@139083 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 06:07:56 +00:00
bbaetz%acm.org
826619f744 Bug 189661 - fix configure.in tests for gcc-3.4 (cvs)
r=cls, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@138163 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 09:02:02 +00:00
seawood%netscape.com
229aef04b7 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


git-svn-id: svn://10.0.0.236/trunk@135429 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 22:11:34 +00:00