Commit Graph
985 Commits
Author SHA1 Message Date
Isaac Aggrey 50d6240e45 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Ehsan Akhgari 223ba0a5c5 Backout changeset 0f0797cdb55a (bug 800106) because of Kraken regressions on Windows XP 2012-10-15 14:19:55 -04:00
Jacek Szpot ad76787332 Bug 800106: replace NS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +02: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 990e90e88a Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Makoto Kato 68b5184840 Bug 786579 - Remove old MSVC (<=2003) support. r=khuey 2012-09-28 16:02:40 +09:00
Steve Workman 0bca6b8108 Bug 790807: Add 64 bit nsAString::ToInteger; r=bsmedberg 2012-09-17 21:10:50 -04:00
Ehsan Akhgari fc7d584a56 Bug 788014 - Part 2: Reduce the inclusion of prtypes.h in the tree to help using stdint types; r=jrmuizel 2012-09-06 17:54:59 -04: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
Ms2ger c8ea20cf42 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Mike Hommey 0f9f294ea0 Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor 6b3ee254ff Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Joshua Cranmer a9921e1d15 Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan 2012-07-06 15:14:07 -05:00
Rafael Ávila de Espíndola 99496f99ce Bug 774041 - silence warning about unused private field. r=benjamin. 2012-07-16 10:57:04 -04:00
Aryeh Gregor 318c755d1f Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Makoto Kato e2b9d5937c Bug 769533 - Part 2. get rid of AppendWithConversion. r=jlebar 2012-07-06 18:44:20 +09:00
Jonathan Watt 131c149f2a Bug 767388 - Kill NS_DEBUG. r=bz. 2012-06-25 20:59:42 +01:00
Geoff Lankow 7a64448b03 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Justin Lebar 3058c55443 Bug 756825 - Fix comments in nsPrintfCString. r=bsmedberg 2012-05-23 11:25:35 -04:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg 92ee1c1420 Bug 737164 part A - make the nsTSubstring string API infallible by default. Note that this patch for reviewing sanity does not modify the subclass APIs, that will be a separate revision, r=jlebar 2012-05-08 12:42:27 -04:00
Patrick Wong c9bcb02a6e Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
Benjamin Smedberg b9be1015dc Bug 743056 - nsPrintfCString is consistently misused because people don't understand its length-truncation behavior. Make it behave the way people expect by expanding the string as necessary (and use nsTSubstring::AppendPrintf to unify the codepath), r=jlebar 2012-04-13 12:58:59 -04:00
Mark Capella f1ce4051a8 Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden 2012-04-02 17:21:24 -07:00
Makoto Kato a55c715b97 Bug 738157 - missing nsSubstring_h___. r=dbaron 2012-03-23 14:46:04 +09:00
Mats Palmgren 4fd4116067 Bug 732951. r=bsmedberg 2012-03-20 19:02:38 +01:00
Nicholas Nethercote c96906ad44 Bug 682431 (part 1) - Fix up ns{String,CString} SizeOf* functions. r=bz. 2012-02-19 19:16:41 -08:00
Nicholas Nethercote 4c7c575004 Bug 710054 - Add {nsString,nsCString}::SizeOf{In,Ex}cludingThis. r=bz. 2012-02-02 14:52:02 -08:00
Nicholas Nethercote cf5bec0e68 Bug 671299 (part 2) - Add nsStringBuffer::SizeOfIncludingThisMustBeUnshared. r=bz. 2012-01-02 18:19:12 -08:00
Nicholas Nethercote c1dd090b4c Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett. 2012-01-25 00:52:51 -08:00
Nicholas Nethercote 35e8000bea Bug 712835 (part 1 of 3) - Add nsStringBuffer::SizeOfIncludingThisIfUnshared(). r=khuey. 2011-12-22 16:57:30 -08:00
Jeff Walden edbb60f3de Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron 2011-12-16 14:42:07 -05:00
Olli Pettay e32dd61fb2 Bug 711841, Null(C)String(), r=bsmedberg,glandium 2011-12-20 21:46:00 +02:00
Andrew Quartey afcb4f6a45 Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal 2011-12-13 14:17:59 +00:00
Neil Rashbrook bb13075a92 Bug 698256 Add and use Substring(data, length) convenience method r=dbaron 2011-12-09 08:35:41 +00:00
Atul Aggarwal 66c9c2457a Bug 603243 - Making nsTString_CharT(char_type c) constructor private to avoid accidental misusage. 2011-11-16 19:42:03 +05:30
Gregory Szorc ee16899cec Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey 2011-11-01 15:45:23 -07:00
Jonathan Watt 276bdfa251 Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg. 2011-10-28 19:33:28 +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
Patrick McManus 678651841f bug 686312 - websockets should not reject non character utf-8 sequence as invalid r=dbaron 2011-09-20 18:13:43 -04:00
Neil Rashbrook 5f1b6aa125 Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte 2011-09-15 08:40:17 +01:00
Neil Rashbrook db562f7cb1 Backout of bug 611503 because Android has some weird string code 2011-09-14 21:14:57 +01:00
Neil Rashbrook 322b0d070f Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte 2011-09-14 20:21:20 +01:00
Mike Hommey ca1abf3f51 Bug 676252 part 1 - Don't use $(OBJ_SUFFIX) before including config.mk. r=ted 2011-08-29 07:34:02 +02:00
Kyle Huey e6af73e3b6 Merge m-c to b-s. 2011-08-28 06:00:17 -04:00