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

733 Коммитов

Автор SHA1 Сообщение Дата
dbaron%dbaron.org 2904c7e9ed Add nsVoidArray::FastElementAt that requires the caller to do bounds checks (0 <= aIndex < Count()). Make ElementAt a little safer without loss of speed (back to the old safety). Make nsCOMArray<T>::ObjectAt use FastElementAt. b=96108 r=darin 2005-11-02 16:05:19 +00:00
bzbarsky%mit.edu 8a516c2bc7 Make ReplaceObjectAt a little safer. Bug 227780, r=timeless, sr=alecf 2005-11-02 16:05:18 +00:00
timeless%mozdev.org 7550832d25 Bug 106386 Correct misspellings in source code
Changes strings which meant "referring"
patch by ajvincent@juno.com r=timeless sr=dmose
2005-11-02 16:05:17 +00:00
seawood%netscape.com 0b32a92e64 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
sicking%bigfoot.com 932310909a Bug 225507: Implement nsCOMArray::SafeObjectAt for out-of-bounds safe access.
r=bryner sr=alecf
2005-11-02 16:05:15 +00:00
bsmedberg%covad.net f777369283 Bug 212222 - Load default prefs from the GRE and from the application. r/sr=alecf/darin
NOTE: This is only the backend work necessary to load prefs. The actual separation of prefs into application/embedding will happen in another bug.
2005-11-02 16:05:14 +00:00
dbaron%dbaron.org c2a2acec18 nsCOMArray should not use nsDerivedSafe. b=221525 r=bryner 2005-11-02 16:05:13 +00:00
bryner%netscape.com ac7665be59 Correcting the description of the third argument to NS_QuickSort. r=dbaron. 2005-11-02 16:05:12 +00:00
jshin%mailaps.org 88e93316ef bug 229705 : CStringArray should accept |nsACString&| instead of |nsCString&|. r=mscott, sr=alecf (with darin, jst, dbaron helping) 2005-11-02 16:05:11 +00:00
dougt%meer.net 4d70c5b7eb add Sort() to nsCOMArray. Patch from ari the_great_spam_bin@yahoo.com. r=alecf, b=211535 2005-11-02 16:05:10 +00:00
neil%parkwaycc.co.uk d4b748fded Bug 198685 need nsCOMArray function like IndexOf that checks COM object identity p=bsmedberg@covad.net r=alecf (no sr needed) 2005-11-02 16:05:09 +00:00
bzbarsky%mit.edu 2221342506 fix build bustage 2005-11-02 16:05:08 +00:00
jshin%mailaps.org aa34a67050 bug 229705: make CStringArray:CStringAt accept nsACString& as out param. (r=alecf, sr=bz) 2005-11-02 16:05:07 +00:00
dbaron%dbaron.org 25c466b97e Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2005-11-02 16:05:06 +00:00
dougt%netscape.com 7bf5cd48d3 Fixes many compiler warnings from xpcom/ds/nsVoidArray.h. r=dougt, sr=darin, patch=colin@theblakes.com, a=asa, b=166427 2005-11-02 16:05:05 +00:00
dbaron%fas.harvard.edu dc78f1a372 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2005-11-02 16:05:04 +00:00
cathleen%netscape.com 718da9b13c eliminate 24 callers to nsCRT::memmove to use memmove from libC instead. removed nsCRT::memove() bug 118135 r=dp sr=brendan 2005-11-02 16:05:03 +00:00
racham%netscape.com 7b10e797f3 Fixing bug 122309. Adding a new routine that can take a string and parse it on a delimiter to add elements to the nsCStringArray. r=dougt, sr=jag 2005-11-02 16:05:02 +00:00
cathleen%netscape.com 8e7e7a12be eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan 2005-11-02 16:05:01 +00:00
dougt%netscape.com 4f0357d604 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com
2005-11-02 16:05:00 +00:00
cathleen%netscape.com dff8a8c59e converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2005-11-02 16:04:59 +00:00
blythe%netscape.com 088cd410a4 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
2005-11-02 16:04:58 +00:00
rjesup%wgate.com af94a3aa23 Remove nsVoidArray:: from method defs 2005-11-02 16:04:57 +00:00
rjesup%wgate.com 072f6676ee Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
#if dEBUG)
2005-11-02 16:04:56 +00:00
rjesup%wgate.com 3650d4c81e Bug 96108: Additional assertions requested by jst. sr=jst 2005-11-02 16:04:55 +00:00
rjesup%wgate.com ddf5c83e3c Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes.  r=jst, sr=waterson
2005-11-02 16:04:54 +00:00
dbaron%fas.harvard.edu ef62f4e1c6 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2005-11-02 16:04:53 +00:00
alecf%netscape.com 893b00159a bug 104126 - remove nsStringArray::IndexOfIgnoreCase and its one consumer. sr=attinasi, r=jag 2005-11-02 16:04:52 +00:00
gerv%gerv.net 7c65a9b363 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2005-11-02 16:04:51 +00:00
rjesup%wgate.com d96a423534 Bug 94243: VoidArray usage patch. a=asa sr=brendan r=waterson r=bienvenu
r=pierre r=jband/dbradley  Also fixes some whitespace issues.
2005-11-02 16:04:50 +00:00
alecf%netscape.com 61a735c9a9 fix an assertion from nsCOMArray where ReplaceElementAt() wouldn't property extend the array because we were just using ObjectAt()
residual stuff from bug 197827, which caused an assertion browsing frame
patch by keeda@hotpop.com, r/sr=alecf
2005-11-02 16:04:49 +00:00
sicking%bigfoot.com c2e57a5529 Bug 162115: Make nsCOMArray return nsDeriviedSafes to avoid bad addrefs/releases
r=bz sr=alecf
2005-11-02 16:04:48 +00:00
bzbarsky%mit.edu 12aaff4a3f Make the nsCOMArray destructor release all the objects. Bug 178813,
r=bbaetz, sr=rpotts
2005-11-02 16:04:47 +00:00
bzbarsky%mit.edu e6995a227c nsCOMArray_base copy constructor should not assert. Bug 178534,
r=dougt, sr=alecf
2005-11-02 16:04:46 +00:00
mkaply%us.ibm.com d38c1db45b #177543
r=me, sr=bz
OS/2 build bustage - add explicit casts
2005-11-02 16:04:45 +00:00
bzbarsky%mit.edu eb48ce7821 Add AppendObjects/InsertObjectsAt to nsCOMArray. Bug 175137,
r=timeless, sr=alecf, a=dbaron
2005-11-02 16:04:44 +00:00
bzbarsky%mit.edu 883abcac44 Make IndexOf a const method. Bug 174940, r=dougt, sr=alecf 2005-11-02 16:04:43 +00:00
varga%netscape.com e7a258a922 Fix for bug 174443. nsCOMArray::ApendObject() shouldn't addref
r=dougt, sr=alecf, a=asa
2005-11-02 16:04:42 +00:00
mkaply%us.ibm.com a5c8ba5fad OS/2 bustage - need PR_CALLBACK 2005-11-02 16:04:41 +00:00
bbaetz%student.usyd.edu.au 2057652c4c Change the never-defined copy-constructor signature to refer to nsCOMArray<T>
instead of nsCOMArray. Should fix OS2 bustage, which noticed this because
it instantiates the function even when its not used
r=sicking, sr=mozbot, a=tinderbox
2005-11-02 16:04:40 +00:00
alecf%netscape.com 822c509c09 more work on bug 162115 - use "friend" to allow nsCOMArray<T>'s copy constructor to be protected, but still usable from nsArray
not part of build
2005-11-02 16:04:39 +00:00
alecf%netscape.com 4bd47b507e add support for a nsISimpleEnumerator implementation for nsCOMArray<T> and nsIArray, and update existing interfaces to support that:
- move nsCOMArray_base's ObjectAt/[]/Count() methods into the public so that nsCOMArrayEnumerator can get to it
- tweak NS_NewArray() to match the existing enumerator NS_New* API
- hook up NS_NewArrayEnumerator to nsArray::Enumerate
Not part of the build, for bug 162115
2005-11-02 16:04:38 +00:00
alecf%netscape.com 21d0af0504 - fix ReplaceObjectAt to properly account for existing null entries
- make nsCOMArray_base accessible from nsCOMArray<T> so that a nsCOMArray<T> can passed to NS_NewArray
for bug 162115, not part of build
2005-11-02 16:04:37 +00:00
alecf%netscape.com 03048eca48 not part of build, more for bug 162115:
- fix some spelling, add documentation
- add NS_NewArray(), including one that takes an existing nsCOMArray<T>
- implement copy constructor for nsCOMArray_base, so that NS_NewArray can work
not part of build
2005-11-02 16:04:36 +00:00
alecf%netscape.com 7e5a4b47eb match up some reviewers comments:
- tri-license with MPL, not NPL
- be consistent with policy on null in the array (it is allowed)
- move Clear() into implementation file, and hide static callback there too
- make sure to AddRef() on the way out of nsArray::IndexOf()
- handle failure of ReplaceElementAt more gracefully
bug 162115, not part of build yet
2005-11-02 16:04:35 +00:00
alecf%netscape.com 6f3992e110 continuing work in progress on nsCOMArray<T> - take darin's suggestion and move all nsISupports-related code into a non-template base class nsCOMArray_base. This allows the generated template to be paper thin (or really, non-existent!)
Then, we move some of the non-trivial methods of this class into a .cpp file
2005-11-02 16:04:34 +00:00
waterson%netscape.com c7d124ba58 Bug 94267. Clean up nsVoidArray::GrowArrayBy(), fixing a couple of crashers. r=rjesup, sr=brendan 2005-11-02 16:04:33 +00:00
waterson%netscape.com e0c58f4510 Fix mac bustage. 2005-11-02 16:04:32 +00:00
waterson%netscape.com 6563ff5f12 Bug 90545. nsVoidArray and nsSupportsArray cleanup. Patch submitted by rjesup@wgate.com, r=jst, sr=waterson. 2005-11-02 16:04:31 +00:00
rbs%maths.uq.edu.au 30304c99a7 Add methods for in-place sorting of nsVoidArray and ns[C]StringArray using caller-provided comparator callback functions. b=88344 r=dbaron sr=scc 2005-11-02 16:04:30 +00:00
kandrot%netscape.com 29dbb2527c r=kandrot@netscape.com, sr=waterson@netscape.com, a=asa@mozilla.org
removes a memset that sets zero bytes (so it did nothing)
2005-11-02 16:04:29 +00:00
hyatt%netscape.com 364a6e9b71 Fix bug in void array's assignment operator. r=scc 2005-11-02 16:04:28 +00:00
jst%netscape.com fee902dd43 DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2005-11-02 16:04:27 +00:00
alecf%netscape.com de820decc7 continue work-in-progress with freezable array.
Also introduce nsCOMArray<nsIFoo>
not part of build
2005-11-02 16:04:26 +00:00
mkaply%us.ibm.com e95ad0f35e #43877
r=dougt, a=dougt
Using this pointer rather than other pointer causes crash
2005-11-02 16:04:25 +00:00
waterson%netscape.com 6610ace60f Fix UMRs. 2005-11-02 16:04:24 +00:00
waterson%netscape.com 4912139130 Fix leak I made. r=warren 2005-11-02 16:04:23 +00:00
waterson%netscape.com f2637c5ff7 Grow by power of two after reaching 16 elements; factor 'implementation' into a separate struct so the nsVoidArray object is one word when empty. 2005-11-02 16:04:22 +00:00
mkaply%us.ibm.com 4e84e28397 # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
2005-11-02 16:04:21 +00:00
scc%netscape.com ba15cfd0a7 Fixing runtime assert bustage. r=pinkerton 2005-11-02 16:04:15 +00:00
bsmedberg%covad.net c51d05ec1d Bug 314015 - nsComponentManagerUtils.h uses the wrong linking macros, SDK 1.8 is broken, r=darin 2005-10-27 19:01:51 +00:00
bsmedberg%covad.net 3ad6307655 Bug 312569 - nsIVersionComparator doesn't always initialize stack structures properly, r=darin 2005-10-17 20:27:22 +00:00
dougt%meer.net 7ecb9f30b4 Bug 307041. Fixing bustage on Solaris Studio 10 build. r=dbaron 2005-10-11 15:08:23 +00:00
bsmedberg%covad.net 40f2e5eb71 Bug 311253 - XPCOM glue dynamic linking on BSD platforms - patch by Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> r=me 2005-10-10 21:59:39 +00:00
bsmedberg%covad.net ac1ec75d5d Bug 311352 - Mac XUL Framework is XUL.framework, not just XUL r=darin 2005-10-09 18:20:03 +00:00
bsmedberg%covad.net e54a5866ab Bug 310976 - Treat 1.5.* as 1.5.infinity r=darin 2005-10-04 02:47:02 +00:00
bsmedberg%covad.net 307ef08c19 Additional orange fix for bug 308838 (API mismatch) 2005-09-30 14:35:24 +00:00
bsmedberg%covad.net 7e4fb43a5d Bug 308838 - Seamonkey win32 installer builds fail to launch after installation (GRE badness) r=darin 2005-09-29 20:01:42 +00:00
bsmedberg%covad.net 46015a79e0 Bug 229589 - nsBaseHashtable documentation obsolete r=dougt 2005-09-26 20:27:36 +00:00
neil%parkwaycc.co.uk 3c12b083dc Mingw bustage fix for bug 299992 r=bsmedberg,darin 2005-09-22 13:22:52 +00:00
bsmedberg%covad.net 1f5928ce8f Bug 299992 - Always return the XPCOM shared-library path when searching for a GRE, not the directory, r=darin 2005-09-15 17:49:51 +00:00
gerv%gerv.net 35149ea17d Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-09-13 18:40:56 +00:00
pkw%us.ibm.com 128e470add Bug 307478 - Build failure with syntax error in nsDebug.h - Fixes AIX build bustage.
Patch by Rupesh Thota <trupesh@in.ibm.com>
r=benjamin@smedbergs.us
2005-09-08 13:59:09 +00:00
bsmedberg%covad.net 26d6dc029c Bug 299992 (final patch!) - Allow glue-finding code to specify additional features such as toolkit=gtk r=darin 2005-09-01 12:33:47 +00:00
bsmedberg%covad.net 0bb578089d Bug 306344 bustage fix: NS_COM_GLUE and NS_HIDDEN_() are not compatible, and we wanted NS_COM_GLUE here (verified by mrbkap) 2005-08-31 18:23:36 +00:00
bsmedberg%covad.net 3e2adc9538 Bug 306334 - XULRunner debug doesn't link on mac r=darin/brendan 2005-08-31 17:20:09 +00:00
bsmedberg%covad.net db1b972744 Bug 305992 - nsIVersionComparator broken in some circumstances (UMR) - patch by Justin Bradford <jabradford@gmail.com> r=shaver+me 2005-08-26 14:16:11 +00:00
bsmedberg%covad.net a364b03e82 Followup to bug 300731 - parse negative numbers properly - patch by Justin Bradford <jabradford@gmail.com> r=shaver (+me) 2005-08-25 12:14:13 +00:00
mkaply%us.ibm.com 03064ea2bd 305281 r=dougt, a=mkaply - OS/2 Firefox doesn't start 2005-08-20 03:03:30 +00:00
bsmedberg%covad.net ad63798518 Bug 304874 - Extensions don't work (on trunk) and some profile names don't work - r=dougt 2005-08-18 20:52:43 +00:00
pinkerton%aol.net d867ea6f33 fix camino build bustage 2005-08-16 00:37:15 +00:00
bsmedberg%covad.net a66fd0ca11 Bug 299992 followup - open in binary mode on windows, and honor semicolon as a comment marker also r=shaver 2005-08-15 22:13:56 +00:00
bsmedberg%covad.net f0d2e05a7e Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin 2005-08-15 18:29:55 +00:00
bsmedberg%covad.net 8992fb4c7d Backout bug 299992 - too much odd platform-specific bustage 2005-08-11 22:07:08 +00:00
bsmedberg%covad.net 7c1779e9ce Bug 299992 - strdup requires <string.h> on windows (why not on mac, hrm?) 2005-08-11 21:17:14 +00:00
bsmedberg%covad.net b1c627454a Bug 299992 - On windows, nsINIParser methods must be NS_COM_GLUE (bustage fix) 2005-08-11 21:05:13 +00:00
bsmedberg%covad.net 9d2986bf10 Bug 299992 - Two additional (forgotten) files - these are moved from xpcom/ds to xpcom/glue 2005-08-11 20:47:03 +00:00
bsmedberg%covad.net e9c48557e9 Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard 2005-08-11 20:40:53 +00:00
bsmedberg%covad.net 3e7f90b006 Bug 212919 - Fix const issues in nsDataHashtable on MSVC7 (I'm surprised other
compilers didn't barf already!) r=swalker sr=scc a=asa
2005-08-11 19:43:21 +00:00
brendan%mozilla.org c43076474d Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron). 2005-08-11 19:43:20 +00:00
cbiesinger%web.de 1e677e56f1 addressing the reviewer comments 2005-08-11 19:43:19 +00:00
cbiesinger%web.de 92effd6bae bug 228794, r=bsmedberg sr=alecf
add nsInterfaceHashtable::GetWeak
2005-08-11 19:43:18 +00:00
kyle.yuan%sun.com e614556c54 Bug 209622 nsTHashtable cause bustage on Solaris with F6U2
r/sr=bsmedberg
The missed part in nsBaseHashtable.h, patch by harinath@cs.umn.edu
2005-08-11 19:43:17 +00:00
bsmedberg%covad.net d67dbd48dc Bug 209622 - bustage fix for stupid compilers (Sun WS and DEC OSF1) -
also remove unused configure test. r=dbaron sr=alecf
2005-08-11 19:43:16 +00:00
darin%meer.net 069e082aaf fixes bug 241876 "nsIDHashKey does not define a KeyEquals method" r+sr=bsmedberg 2005-08-11 19:43:15 +00:00
bzbarsky%mit.edu 7b445794fb Get rid of another nsSupportsHashtable user, moving closer to "no raw addrefed
returns" nirvana.  Bug 230092, r=bsmedberg, sr=darin
2005-08-11 19:43:14 +00:00
jshin%mailaps.org eff0950b95 bug 226623: XFT build crashes on PLHashRawAdd. Switch to nsClassHashTable and add a new HashKeyType that duplicates a string in ctor. (r=bsmedberg, sr=bryner, a1.6=tor) 2005-08-11 19:43:13 +00:00
bsmedberg%covad.net 3cda5775e1 Bug 179834. Separate application resources and GRE resources. r=darin sr=dougt 2005-08-11 19:43:12 +00:00
bsmedberg%covad.net eaf415b72d Bug 193031 fix category manager to use aPersist parameter. Bug 54639 Category Manager is not thread-safe. Bug 208437 separate threadsafe nsBaseHashtable into super-class nsBaseHashtableMT. r=dougt/alecf I know Sun Workshop builds are still broken... working on it. 2005-08-11 19:43:11 +00:00
bsmedberg%covad.net 0c2a7ccbbd bug 206254 allow nsBaseHashtable::IsInitialized() and bug 206528 nsBaseHashtable should initialize mLock. r=alecf 2005-08-11 19:43:10 +00:00