Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
mkaply%us.ibm.com b8fca0d80e 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 49453aa5cd Only use __attribute__ on gcc 3 or higher. Fixing bustage. 2004-07-14 23:43:15 +00:00
bryner%brianryner.com 377380315d 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 6f486a3c92 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
neil%parkwaycc.co.uk 63e200f5f3 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 d2eefcf3f2 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 0cf1253322 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 48117afde3 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 6c7448b0e3 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 f7c33c2698 #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 577de49b39 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 5a2b401762 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 3ee6b37d3f 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 af26a5126e Use the documented __declspec keyword instead of _declspec.
Bug #206934 r=dougt
2003-06-24 22:12:37 +00:00
bsmedberg%covad.net 4aa3bce895 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 e8fc5a0fb0 Add explicit dependency upon mozilla-config.h
Bug #200574 r=dougt sr=dbaron
2003-04-04 04:50:58 +00:00
dbaron%dbaron.org 0ce213e52c 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 ab74b36ce8 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 757c5e380d 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 cf7b0ddb5d 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 c5e8f896cd 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 7da7780eac 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 d663907276 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 4c803332db 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 7294110bc7 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 711739d601 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 f385eb981a 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 5e9a58286e OS/2 bustage - we don't use _System 2001-09-27 16:04:44 +00:00
dougt%netscape.com 62afce095d 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 62180bea17 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 1a65c850d1 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 608c4d0a19 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 939a715e0d 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 b319334e3f turning on |HAVE_CPP_2BYTE_WCHAR_T| 2000-09-03 02:24:58 +00:00
scc%mozilla.org ad0049c10e 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 eb57d82d55 Native irix compilers don't seem to know about |typename| either 2000-08-19 08:01:28 +00:00
cls%seawood.org f97564f1f9 The AIX compiler doesn't seem to know how to handle |typename| 2000-07-28 06:57:20 +00:00
amusil%netscape.com 5131a0f5c2 Turn on wchar_t 2000-06-21 01:31:09 +00:00
cls%seawood.org dc64e916d3 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 0aca2ee58f fixing OS/2 VisualAge platform bustage, and bad dates in licenses 2000-06-18 05:00:31 +00:00
scc%mozilla.org 1d6c6fadc5 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 f96d29bcff make |PRUnichar| be |wchar_t| on Mac. Soon on Windows, as well. 2000-06-13 00:05:18 +00:00
scc%mozilla.org 3e457bd913 define |PRUnichar| to be |wchar_t|, when applicable 2000-06-11 00:49:29 +00:00
scc%mozilla.org b61d6b1d41 moved |explicit| here, where it belongs, from "nsCOMPtr.h" 2000-06-10 09:58:15 +00:00
waterson%netscape.com 7ea63b347d Canonify HAVE_CPP_ACCESS_CHANGING_USING and HAVE_CPP_AMBIGUITY_RESOLVING_USING. 2000-06-05 00:46:37 +00:00
scc%mozilla.org 09ea95c306 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 eba1d16a5f Also wrap in #ifdef __cplusplus 2000-05-14 00:17:47 +00:00
waterson%netscape.com f3918467fe Wrap C++ in |extern C++| block to fix build. r=scc 2000-05-14 00:11:54 +00:00
scc%netscape.com 6e7090ce6f 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 360dc75555 Revert changes. They're causing problems elsewhere. 2000-04-27 07:01:58 +00:00