Ehsan Akhgari
1b131491ff
Bug 941405 - Remove the usages of the register keyword from XPCOM; r=froydnj
2013-11-21 10:42:40 -05:00
Ehsan Akhgari
34ea474629
Bug 936912 - Build xpcom in unified mode; r=froydnj
2013-11-18 21:34:00 -05:00
Derrick Moser
fbbed5e832
Bug 872497 - Remove problematic "optimization" in NS_QuickSort. r=jlebar
...
This change allows us to avoid O(n^2) performance when partially sorted data
is given to NS_QuickSort. We no longer attempt an insertion sort if the input
appears pre-sorted. This brings the expected performance back to O(n*log(n))
but also eliminates the possibility of O(n) best case performance. Attempts
to achieve O(n) performance should be the responsibility of callers as they
are in a better position to evaluate the costs/benefit trade-off of looking
for special cases that can be sorted quicker.
2013-05-18 15:16:02 -04:00
Mats Palmgren
fce4a6c022
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
2013-01-15 13:22:03 +01:00
Nathan Froyd
e2fbb0a25b
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Ehsan Akhgari
e4907ec4f6
Backout changeset 9e38c5518605, fc59bd8d49ba, d0ba1abde985, and acf91f25f228 (bugs 796119, 796279, and 797106) because of broken reftests on 64-bit platforms
2012-10-02 23:16:36 -04:00
Nathan Froyd
a2064e331e
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Isaac Aggrey
328099fe04
Bug 795507: Remove usage of PR_BEGIN_EXTERN_C and PR_END_EXTERN_C; r=ehsan
2012-09-30 21:10:22 -05:00
Dominic Fandrey
532ec73933
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-06-02 14:56:50 +02:00
dougt@meer.net
e91a27d509
Fixing 314997. Fixing Sun Studio 9 bustage from bug 289010
2005-11-10 16:53:25 +00:00
bsmedberg@covad.net
6413e50e76
Bug 289010 - Move nsVoidArray/nsCOMArray to the XPCOM glue, and a few other things to make the glue easier to use, r=shaver+darin . The following files were CVS-copied from xpcom/ds to xpcom/glue:
...
nsVoidArray.h
nsVoidArray.cpp
nsCOMArray.h
nsCOMArray.cpp
nsQuickSort.h
nsQuickSort.cpp
2005-11-02 20:38:21 +00:00
gerv@gerv.net
9fc6fe4b4f
Bug 236613: change to MPL/LGPL/GPL tri-license, and other license-related fixups.
2005-11-02 16:05:27 +00:00
caillon@redhat.com
2a426fdf81
Kill off nsComObsolete.h
...
Patch by marco@gnome.org to bug 241145
r=caillon sr=dbaron
2005-11-02 16:05:23 +00:00
seawood@netscape.com
8ae71996ca
Remove xp_core.h & xp_mem.h and all build references to them.
...
Remove cruft from xp_mcom.h & xp_str.h.
Bug #38061 r=brendan sr=alecf a=valeski
2005-11-02 16:05:16 +00:00
alecf@netscape.com
364e7646d2
fix signed/unsigned issues
1999-06-27 06:18:41 +00:00
ramiro@netscape.com
13eb5276fa
This is all C code.
1999-06-09 10:08:12 +00:00
mcafee@netscape.com
3b248af3f7
Renaming nsQuickSort to NS_QuickSort so it doesn't look like a class name. r=brendan@netscape.com
1999-05-10 06:47:04 +00:00
tague@netscape.com
9a2361e840
Rolled out change
1999-04-13 23:25:38 +00:00
tague@netscape.com
db61612e91
Fixed windows build booboo. Added extern C to the defintion of nsQuickSort
1999-04-13 23:03:40 +00:00
alecf@netscape.com
34c3cd8e96
make sure nsQuickSort is extern "C"
1999-04-13 20:36:57 +00:00
alecf@netscape.com
10ae23d2f9
fix mac bustage
1999-04-13 20:34:38 +00:00
jdunn@netscape.com
b6c496b28d
fix compiler warning/errors with conversion from a void* to a char*
1999-04-13 20:27:17 +00:00
alecf@netscape.com
14e4f723f7
add quicksort implementation to base
...
(Thanks to Regents of CA and the RDF team)
1999-04-13 19:03:45 +00:00