Commit Graph
68 Commits
Author SHA1 Message Date
Catalin Iacob f88cdc0744 Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
Sudheera Palihakkara c0463c8ec1 Bug 327598 - Set the return value of RemoveElementAt to void instead of bool. r=Neil 2013-04-18 07:40:09 -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
Mark Banner 84aec67c03 Bug 823940 Remove unused nsAutoVoidArray, and cleanup nsVoidArray's support for it. r=bsmedberg. 2012-12-22 09:00:15 +00:00
Abhishek Potnis dd0a15b5b8 Bug 795511: Removed usages of PR_BIT and PR_BITMASK from the tree; r=ehsan 2012-10-20 07:31:43 +05:30
Ehsan Akhgari 243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Nicholas Nethercote adee4b2e06 Bug 671299 (part 1) - Add ns{Void,COM}Array::SizeOfExcludingThis(). r=bz. 2012-01-02 18:18:26 -08:00
Mark Banner e7e4bd8568 Bug 693949 - Drop nsCStringArray. r=bsmedberg 2011-10-28 08:35:45 +01:00
Ehsan Akhgari 478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu 0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Dominic Fandrey 532ec73933 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Mark Banner 9cc9a9c2c8 Bug 642408 - Drop nsStringArray now that it is no longer used, r=bsmedberg 2011-03-23 15:13:41 -04:00
Jonathan Watt d11d2e6829 Bug 551299. Add a SetCount() method to nsCOMArray and nsVoidArray. r=bsmedberg. 2010-03-15 11:38:50 +00:00
Fred Jendrzejewski cbc6639bab Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg 2009-01-22 17:15:34 +13:00
Arpad Borsos 1b55360c07 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Jesse Ruderman cb96f9d230 Fix a regression from my patch for bug 445999 in the self-assignment case. 2008-09-10 16:23:00 -07:00
Jesse Ruderman af67a7caf8 Fix bug 445999, nsCStringArray::operator= leaks all strings that were in the destination array. r=bsmedberg 2008-09-10 15:02:06 -07:00
a9d45ddcb3 Bug 292940 partial OOM audit for nsStringArray and nsCStringArray r=darin, r=bsmedberg, sr=mrbkap, a=mtschrep thanks to [email protected] for unbitrotting 2008-01-14 13:01:40 -08:00
98de634631 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. 2007-07-08 00:08:04 -07:00
[email protected] e6373e70ab Bug 361792 - Signed-unsigned comparison in nsVoidArray.cpp. r+sr=darin 2006-11-28 00:32:30 +00:00
[email protected] dcb7a7a50b Bug 324911, use different error messages for out-of-range in ElementAt and FastElementAt. r+sr=sicking. 2006-09-06 00:22:52 +00:00
[email protected] 17521539a1 Bug 347114 - nsVoidArray::SetArray implementation is marked inline incorrectly, r=obvious build bustage 2006-08-03 13:34:20 +00:00
[email protected] bad3f393f0 The XPCOM glue cannot use NSPR, provisional r=bz to fix btek bustage until I can find an XPCOM peer. 2005-11-14 16:36:39 +00:00
[email protected] 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
[email protected] 2d8c35e22a Bug 312226: Get rid of virtuality in nsVoidArray and optimize nsSmallVoidArray.
r=rjesup sr=jst
2005-11-02 16:05:24 +00:00
[email protected] 8702d894b0 Bug 255792, nsSmallVoidArray::ReplaceElementAt does not work in the same way as nsVoidArray::ReplaceElementAt, r=rjesup,sr=alecf 2005-11-02 16:05:22 +00:00
[email protected] f13c2950dc Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-11-02 16:05:20 +00:00
[email protected] 9b9859ac69 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
[email protected] 90e050fe1c bug 229705: make CStringArray:CStringAt accept nsACString& as out param. (r=alecf, sr=bz) 2005-11-02 16:05:07 +00:00
[email protected] d28602da60 Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2005-11-02 16:05:06 +00:00
[email protected] bd3a80318c 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
[email protected] d880694d71 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
[email protected] d06aae4b90 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
[email protected] cad335856f 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
[email protected] 233a5424b3 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2005-11-02 16:04:59 +00:00
[email protected] 0edf923ce9 Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
#if dEBUG)
2005-11-02 16:04:56 +00:00
[email protected] 8facb07afd Bug 96108: Additional assertions requested by jst. sr=jst 2005-11-02 16:04:55 +00:00
[email protected] ea7df30ca7 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
[email protected] 793ceba4e8 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2005-11-02 16:04:53 +00:00
[email protected] 571b42255b bug 104126 - remove nsStringArray::IndexOfIgnoreCase and its one consumer. sr=attinasi, r=jag 2005-11-02 16:04:52 +00:00
[email protected] b97050fe91 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2005-11-02 16:04:51 +00:00
[email protected] 8af9e1af32 Bug 94267. Clean up nsVoidArray::GrowArrayBy(), fixing a couple of crashers. r=rjesup, sr=brendan 2005-11-02 16:04:33 +00:00
[email protected] a18b318f67 Fix mac bustage. 2005-11-02 16:04:32 +00:00
[email protected] 8e353a6990 Bug 90545. nsVoidArray and nsSupportsArray cleanup. Patch submitted by [email protected], r=jst, sr=waterson. 2005-11-02 16:04:31 +00:00
[email protected] c1507da8f1 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
[email protected] 2f0a0f5135 [email protected], [email protected], [email protected]
removes a memset that sets zero bytes (so it did nothing)
2005-11-02 16:04:29 +00:00
[email protected] ff3229d9e0 Fix bug in void array's assignment operator. r=scc 2005-11-02 16:04:28 +00:00
[email protected] 03eb7c405d 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