dbaron%dbaron.org
bdac8fcd97
Fix -Wconversion warnings that prevent compiling netwerk/cookie/src/ (which makes warnings fatal) with gcc 4.3 on x86_64. b=409384 r=bsmedberg a=beltzner
...
git-svn-id: svn://10.0.0.236/trunk@247255 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 23:03:50 +00:00
timeless%mozdev.org
ad3b4b0ef5
Bug 292940 partial OOM audit for nsStringArray and nsCStringArray
...
r=darin, r=bsmedberg, sr=mrbkap, a=mtschrep
thanks to ryanvm@gmail.com for unbitrotting
git-svn-id: svn://10.0.0.236/trunk@243071 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-14 21:01:40 +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
jruderman%hmc.edu
4f8ac1cd3d
Bug 324911, use different error messages for out-of-range in ElementAt and FastElementAt. r+sr=sicking.
...
git-svn-id: svn://10.0.0.236/trunk@209236 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-06 00:22:52 +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
bsmedberg%covad.net
d15fe4686d
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
git-svn-id: svn://10.0.0.236/trunk@184052 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 20:38:21 +00:00
cvshook%sicking.cc
88896b619f
Bug 312226: Fix minor things i missed in last patch.
...
r/sr=jag
git-svn-id: svn://10.0.0.236/trunk@183986 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:26 +00:00
cvshook%sicking.cc
34dcfde7cc
Bug 312226: Get rid of virtuality in nsVoidArray and optimize nsSmallVoidArray.
...
r=rjesup sr=jst
git-svn-id: svn://10.0.0.236/trunk@183983 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:23 +00:00
dbaron%dbaron.org
fd48169895
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
...
git-svn-id: svn://10.0.0.236/trunk@183981 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:21 +00:00
gerv%gerv.net
751af0272c
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@183980 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:20 +00:00
jshin%mailaps.org
ab24a8ed16
bug 229705 : CStringArray should accept |nsACString&| instead of |nsCString&|. r=mscott, sr=alecf (with darin, jst, dbaron helping)
...
git-svn-id: svn://10.0.0.236/trunk@183971 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:11 +00:00
jshin%mailaps.org
210ea24658
bug 229705: make CStringArray:CStringAt accept nsACString& as out param. (r=alecf, sr=bz)
...
git-svn-id: svn://10.0.0.236/trunk@183967 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:07 +00:00
dbaron%dbaron.org
c433f6bbfc
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@183966 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:06 +00:00
dougt%netscape.com
088b6f674f
Fixes many compiler warnings from xpcom/ds/nsVoidArray.h. r=dougt, sr=darin, patch=colin@theblakes.com, a=asa, b=166427
...
git-svn-id: svn://10.0.0.236/trunk@183965 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:05 +00:00
dbaron%fas.harvard.edu
b7aa53a78b
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@183964 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:04 +00:00
racham%netscape.com
c9d217eb90
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
...
git-svn-id: svn://10.0.0.236/trunk@183962 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:02 +00:00
dougt%netscape.com
9ddcff50d7
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
git-svn-id: svn://10.0.0.236/trunk@183960 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:00 +00:00
blythe%netscape.com
b7b62afe70
Fix bug 107270
...
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@183958 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:58 +00:00
rjesup%wgate.com
db02875a5b
Remove nsVoidArray:: from method defs
...
git-svn-id: svn://10.0.0.236/trunk@183957 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:57 +00:00
rjesup%wgate.com
3cb29fef2d
Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
...
#if dEBUG)
git-svn-id: svn://10.0.0.236/trunk@183956 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:56 +00:00
rjesup%wgate.com
bfbe6a423a
Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
...
assertions for bad voidarray indexes. r=jst, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@183954 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:54 +00:00
dbaron%fas.harvard.edu
fd3061e1a7
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@183953 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:53 +00:00
alecf%netscape.com
732fac7398
bug 104126 - remove nsStringArray::IndexOfIgnoreCase and its one consumer. sr=attinasi, r=jag
...
git-svn-id: svn://10.0.0.236/trunk@183952 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:52 +00:00
gerv%gerv.net
9e8acab9c8
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
...
git-svn-id: svn://10.0.0.236/trunk@183951 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:51 +00:00
waterson%netscape.com
27c8264793
Bug 90545. nsVoidArray and nsSupportsArray cleanup. Patch submitted by rjesup@wgate.com, r=jst, sr=waterson.
...
git-svn-id: svn://10.0.0.236/trunk@183931 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:31 +00:00
rbs%maths.uq.edu.au
8c6b1a156d
Add methods for in-place sorting of nsVoidArray and ns[C]StringArray using caller-provided comparator callback functions. b=88344 r=dbaron sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@183930 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:30 +00:00
jst%netscape.com
01cccfbef9
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
...
git-svn-id: svn://10.0.0.236/trunk@183927 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:27 +00:00
waterson%netscape.com
f24a0a2918
Grow by power of two after reaching 16 elements; factor 'implementation' into a separate struct so the nsVoidArray object is one word when empty.
...
git-svn-id: svn://10.0.0.236/trunk@183922 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:22 +00:00
mkaply%us.ibm.com
75d44677d5
# 34082
...
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
git-svn-id: svn://10.0.0.236/trunk@183921 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:21 +00:00
waterson%netscape.com
7d74faa6ec
Bug 9489. Add support for nsAutoVoidArray. r=scc,shaver
...
git-svn-id: svn://10.0.0.236/trunk@54833 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 00:37:11 +00:00
dmose%mozilla.org
0efb7c174c
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
valeski%netscape.com
85c426971e
15590, r=kipp. added a nsCStringArray class so the cool string array functionality could be used for CStrings too. this checkin is *part* of a fix to the bug
...
git-svn-id: svn://10.0.0.236/trunk@52250 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:47:17 +00:00
kipp%netscape.com
cf007b6ca2
Reworked sizeof api's to be much more useful; updated implementations to match
...
git-svn-id: svn://10.0.0.236/trunk@45272 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 03:04:37 +00:00
dp%netscape.com
befa259a88
Landing xpcom20/21 branch.
...
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
alecf%netscape.com
b8f6a37ee1
fix virtual constructor problem
...
git-svn-id: svn://10.0.0.236/trunk@30194 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:50:24 +00:00
peterl%netscape.com
4c6a934d77
added nsStringArray
...
git-svn-id: svn://10.0.0.236/trunk@18416 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-23 06:58:34 +00:00
troy
c5d8a9d8f3
Added an additional constructor
...
git-svn-id: svn://10.0.0.236/trunk@3677 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 22:48:25 +00:00
kipp
bc4023da9b
Added SizeOf method
...
git-svn-id: svn://10.0.0.236/trunk@3380 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:38:36 +00:00
peterl
9d9d3404d3
added enumerate methods
...
git-svn-id: svn://10.0.0.236/trunk@2044 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:31:58 +00:00
kipp
fb1503758e
moved to pub
...
git-svn-id: svn://10.0.0.236/trunk@165 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:24:54 +00:00