Commit Graph

32 Commits

Author SHA1 Message Date
Andrew Quartey
0f6ea31e33 Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan 2012-11-01 20:57:25 -04:00
Isaac Aggrey
52ce9e3c17 Bug 795351: Replace LL_MaxInt(), LL_MinInt(), LL_MaxUint() with stdint macros; r=ehsan 2012-09-28 17:08:26 -05:00
Isaac Aggrey
990e90e88a Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Randell Jesup
3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
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
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
Mounir Lamouri
2bcd5b2f0d Bug 636750 (1/4) - Add ToDouble to nsTString. r=bsmedberg 2011-03-25 12:13:59 +01:00
Mounir Lamouri
ade860451b Bug 637325 - Fix a typo in xpcom/tests/TestStrings.cpp:test_strip_chars. r=bsmedberg a=tests 2011-03-18 15:13:40 +01:00
Mats Palmgren
24d0ea454d Bug 615147. r=dbaron a=blocking2.0:final 2011-01-14 01:22:26 +01:00
Mounir Lamouri
c317c7ae13 Bug 549475: Implement HTML5-specified value sanitization algorithm for HTMLInputElement. r=sicking,ehsan,bsmedberg sr=jst 2010-07-21 02:11:19 +02:00
Neil Rashbrook
2971a0d980 Bug 538476 Allow ToInteger to take an nsresult* parameter to match the external string API r=bsmedberg 2010-01-08 23:43:50 +00:00
Neil Rashbrook
e006f779df Bug 520366 AppendInt only handles 32 bit signed ints r=bsmedberg 2009-11-04 21:33:23 +00:00
Neil Rashbrook
63c77e3cdc Bug 499027 Copying an empty string to a new string allocates a buffer r=dbaron sr=jst 2009-08-14 12:03:05 +01:00
Neil Rashbrook
c111019db9 Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg 2009-03-04 09:50:22 +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
Benjamin Smedberg
d6e071646d Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron 2009-01-15 13:44:46 -05:00
Benjamin Smedberg
63f970a88c Bug 450137 - Add namespaces to multiple classes with the same name in xpcom/tests, to avoid automated tool confusion, r=dbaron 2008-08-18 12:45:38 -04:00
22cd77f01a Bug 339069 - Optimization for RFindInReadable
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r=darin, sr=dbaron
2007-07-23 18:30:19 -07:00
darin@meer.net
e3c2e42d5d fixes bug 327719 "Passing a big double serialize a rounded double" patch by afatecha@idea.com.py r=dbaron sr=darin 2006-03-15 14:23:11 +00:00
darin@meer.net
a89a85b0a6 fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard and doesn't clear F_VOIDED flag" r=bzbarsky 2006-02-04 00:42:18 +00:00
darin@meer.net
425dd1f01d landing xpcom patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=dbaron sr=jst 2005-02-02 22:18:37 +00:00
roc+@cs.cmu.edu
d9edea9d71 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin 2004-06-17 00:13:25 +00:00
darin@meer.net
9f5d58cd34 adding test for RFindCharInSet with no explicit offset parameter 2004-04-29 03:36:47 +00:00
darin@meer.net
936757da7e adding testcases for FindCharInSet and RFindCharInSet, bug 240837 2004-04-19 20:12:52 +00:00
cbiesinger@web.de
29d001e86e bug 240106, add 64-bit version of nsC?String::AppendInt
r=darin sr=dbaron
2004-04-13 19:13:49 +00:00
darin@meer.net
82b68e1864 fixes bug 235272 "RFind is broken [was: Thunderbird treats two-letter folder msf files as folders themselves]" r=jst sr=bienvenu 2004-03-04 07:54:22 +00:00
darin@meer.net
8941db497c fixes bug 235355 "hangs/crashes after choosing Server Settings in Mail&Newsgroup Account Settings, click o.k." r+sr=dbaron 2004-02-25 03:24:29 +00:00
darin@meer.net
d640af6f3e landing patch for bug 234864 "string branch landing resulted in large spike in heap allocations (brad:A metric)" r+sr=dbaron
this patch also introduces nsTFixedString and removes CBufDescriptor.
2004-02-20 01:53:23 +00:00
darin@meer.net
14e471acbc landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00