Commit Graph

72 Commits

Author SHA1 Message Date
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
cls%seawood.org
611a76fc9d Adding NS_PTR_TO_INT32 & NS_INT32_TO_PTR macros to do safe pointer casting on 64-bit platforms.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org
2001-08-14 04:14:47 +00:00
dbaron%fas.harvard.edu
d0c5ecc6fc Limit previous change to definition of PRUnichar to Unix. Should fix mac commercial build bustage. sr=scc b=75544 2001-05-21 16:34:20 +00:00
dbaron%fas.harvard.edu
dc77e98525 Fix NS commercial Unix build bustage on some compilers by (at least temporarily) making PRUnichar always be equivalent to PRUint16 rather than sometimes being wchar_t. r=scc sr=brendan b=75544 2001-05-18 23:44:17 +00:00
jdunn%netscape.com
db73c9ba7c changing C++ comments to C comments since for some reason
nscore.h is being included by intl/lwbrk/src/rulebrk.c &
modules/libpref/src/prefapi.c
r= scc@mozilla.org & brendan@mozilla.org
2000-09-13 12:22:17 +00:00
scc%mozilla.org
4b2a937084 turning on |HAVE_CPP_2BYTE_WCHAR_T| 2000-09-03 02:24:58 +00:00
scc%mozilla.org
e798b943d0 fixed comment typo (now was a good time, since I just checked in string changes). r=brendan 2000-09-02 04:17:11 +00:00
cls%seawood.org
e01272bbf7 Native irix compilers don't seem to know about |typename| either 2000-08-19 08:01:28 +00:00
cls%seawood.org
fe49190942 The AIX compiler doesn't seem to know how to handle |typename| 2000-07-28 06:57:20 +00:00
amusil%netscape.com
aafe798439 Turn on wchar_t 2000-06-21 01:31:09 +00:00
cls%seawood.org
1327cdd365 nscore.h is included by .c files so c++ comments have to go. Fix for WS5.0 bustage. 2000-06-18 21:27:27 +00:00
scc%mozilla.org
3446bda5c3 fixing OS/2 VisualAge platform bustage, and bad dates in licenses 2000-06-18 05:00:31 +00:00
scc%mozilla.org
5b2a4891ec Temporarily (till Thursday) commented out the definition that made |PRUnichar*| incompatible with |OLECHAR*| as a favor to the AIM team, so they can decide whether to cast in their code, or alter their headers. They know what to do in either case, and have agreed that this definnition can be re-activated on Thursday. r=vishy 2000-06-14 02:54:40 +00:00
scc%mozilla.org
4dad2b6962 make |PRUnichar| be |wchar_t| on Mac. Soon on Windows, as well. 2000-06-13 00:05:18 +00:00
scc%mozilla.org
c5867168d6 define |PRUnichar| to be |wchar_t|, when applicable 2000-06-11 00:49:29 +00:00
scc%mozilla.org
e780126346 moved |explicit| here, where it belongs, from "nsCOMPtr.h" 2000-06-10 09:58:15 +00:00
waterson%netscape.com
94bd261c1c Canonify HAVE_CPP_ACCESS_CHANGING_USING and HAVE_CPP_AMBIGUITY_RESOLVING_USING. 2000-06-05 00:46:37 +00:00
scc%mozilla.org
80e3b6a3ae Bug #39686. Made an |NS_COUNT|. Put it in the new file "nsAlgorithm.h", to which I also moved |NS_MIN| and |NS_MAX| from "nscore.h", and |copy_string| and |copy_string_backward| from "nsAReadableString.h". Also fixed non-standard include-guards. r={sford, jag} 2000-05-20 20:43:26 +00:00
waterson%netscape.com
e9d590dbb4 Also wrap in #ifdef __cplusplus 2000-05-14 00:17:47 +00:00
waterson%netscape.com
d272d6d54b Wrap C++ in |extern C++| block to fix build. r=scc 2000-05-14 00:11:54 +00:00
scc%netscape.com
5bd4efd8d4 waterson and I are giving up on the current build being allowed to even include files related to STL, mostly (but not only) because of Solaris ... by the time someone want to _use_ STL, maybe the compilers will be better, and this fix won't effect them. 2000-05-13 23:59:49 +00:00
waterson%netscape.com
9486ea2455 Revert changes. They're causing problems elsewhere. 2000-04-27 07:01:58 +00:00