Joshua Cranmer
a74766f285
Bug 856108 - Port static analyses to clang, part 2f: use MOZ_STACK_CLASS in xpcom. r=bsmedberg
2013-04-11 22:21:40 -05:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mike Hommey
ffa61edd96
Bug 852950 - Kill libxpcom. r=bsmedberg
...
Also refactored the xpcom standalone glue to reside in a single file and
removed its use of realpath().
--HG--
rename : xpcom/stub/dependentlibs.py => toolkit/library/dependentlibs.py
rename : xpcom/stub/nsXPComStub.cpp => xpcom/build/FrozenFunctions.cpp
2013-03-20 14:56:41 +01:00
Mike Hommey
5354067c63
Backout changeset f12e5c87adf6 (bug 852950) because it breaks running from dist/bin
2013-03-20 23:59:45 +01:00
Mike Hommey
cadfe73f5b
Bug 852950 - Kill libxpcom. r=bsmedberg
...
--HG--
rename : xpcom/stub/dependentlibs.py => toolkit/library/dependentlibs.py
rename : xpcom/stub/nsXPComStub.cpp => xpcom/build/FrozenFunctions.cpp
2013-03-20 14:56:41 +01:00
Gregory Szorc
09e7b06723
Bug 844654 - Part 3: Remove now empty Makefile.in files; rs=khuey
...
--HG--
extra : rebase_source : 8de9c7f68a953e574dda22f8c14c2b2ca60444f9
2013-03-19 18:49:07 -07:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Ms2ger
c4380f4933
Bug 845374 - Part r: Stop including nsTArray.h in nsReadableUtils.h; r=khuey
2013-03-17 08:55:16 +01:00
Benjamin Smedberg
34bfd48b1d
Bug 863263 part A - Modify some code in nsReadableUtils to support fallible and infallible variations of AppendUTF8toUTF16, r=jlebar
2013-03-08 12:27:58 -05:00
Gregory Szorc
faf262c4ee
Merge mozilla-central into build-system
...
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Gregory Szorc
a8e6b873d4
Bug 784841 - Part 18ν: Convert /xpcom; f=Ms2ger rs=ted
2013-02-25 13:20:02 -08:00
Cykesiopka
bb8609bee7
Bug 326317 - Fix issues with comments in nsTSubstring.h. r=dbaron
2013-02-25 09:07:15 -05:00
Jeff Muizelaar
be688a687b
Bug 835470. Add operator== for char_type. r=bsmedberg
...
Just a matter of hooking it up to Equals().
QString, std::string, WTFString all have these.
--HG--
extra : rebase_source : b6046c6fafc4224132462cdbf88f8e72e701b333
2013-01-29 14:51:46 -05:00
Nils Maier
9ccd762177
Bug 761552 - Part 1: Provide UTF8ToUnicode functions accepting a buffer. r=jlebar
...
UTF8ToUnicode does not let the caller specify the buffer to use, but allocates
the buffer on it's own. Hence the caller cannot choose which allocator to use.
Rectify this by providing new APIs.
1. Split UTF8ToNewUnicode into:
- CalcUTF8ToUnicodeLength
- UTF8ToUnicodeBuffer
2. Rebuild UTF8ToNewUnicode using the new functions
2013-01-29 10:50:04 -05:00
Nicholas Nethercote
74af724c1a
Bug 826521 (part 1) - Add SizeOfIncludingThisEvenIfShared() for strings. r=bz.
...
--HG--
extra : rebase_source : 5c10fc346ba0c5fa76d947a97254e9ebc49353e1
2013-01-17 21:21:35 -08:00
Jeff Muizelaar
20c97d42f8
Bug 786533. Add a comment about the purpose of XPCOM_MIN/MAX. r=ehsan
...
--HG--
extra : rebase_source : 97ed3b670dee51b929344e1222be0d61ce18b3af
2013-01-15 11:26:58 -05:00
Mats Palmgren
93d3d7b2b4
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
Boris Zbarsky
a65b5ab129
Bug 820909. Make LowerCaseEqualsASCII and LowerCaseEqualsLiteral actually do ASCII-case-insensitive matching instead of doing odd things with KELVIN SIGN and LATIN CAPITAL LETTER I WITH DOT ABOVE. r=bsmedberg, sr=dbaron
2012-12-26 13:42:39 -08:00
Neil Rashbrook
b87325632b
Bug 818861 Shouldn't allow promising a flat string from a flat string r=dbaron
2012-12-22 20:40:37 +00:00
Robert Longson
a4e3ef3138
Bug 818391 - Add std::abs(long long) for VC9 since it lacks this C++11 signature. r=mats,jlebar
2012-12-05 23:26:28 +01:00
Chris Peterson
dc65fe3eae
Bug 796948 - Part 4: Remove unused USE_CPP_WCHAR_FUNCS and literal_string code. r=ehsan
2012-10-29 22:30:19 -07:00
Mats Palmgren
60ccae9fe3
Bug 817574 - Replace NS_ABS with std::abs. r=roc
2012-12-04 13:33:33 +01:00
Ehsan Akhgari
ca2039bc85
Bug 800106 - Drop inline annotations in nsUTF8Utils.h; r=dbaron
2012-11-07 14:14:27 -05:00
Rafael Ávila de Espíndola
36d17fb8f3
Bug 777122 - Add telemetry reporting of late writes. r=jlebar.
2012-10-24 15:42:54 -04:00
Justin Lebar
e2c276a076
Bug 802469 - Make misuse of NS_LITERAL_{C,}STRING a compile error. r=bsmedberg
2012-10-24 12:53:22 -04:00
Phil Ringnalda
f4d107eda2
Back out 46e58a7ec55e and 597981ef2ef5 (bug 777122) for Windows build failures
2012-10-24 07:38:20 -07:00
Rafael Ávila de Espíndola
875ef290f3
Bug 777122 - Add telemetry reporting of late writes. r=jlebar.
...
Record late writes to disk and unique them with sha1.
2012-10-24 09:27:49 -04:00
Ehsan Akhgari
aa8a5f24ed
Backout the nsUTF8Utils.h part of changeset 531b7f4293e9 (bug 800106) because of Kraken regressions on Windows XP
2012-10-23 21:10:34 -04:00
Jacek Szpot
6c54d3acb6
Bug 800106: replace some NS_ALWAYS_INLINEs with MOZ_ALWAYS_INLINEs; r=ehsan
2012-10-23 13:31:22 +02:00
Anthony Jones
877be0ebd6
Bug 791428 - Remove unnecessary malloc from number format function. r=roc
2012-10-22 22:22:27 -04:00
Ehsan Akhgari
7a05f28eb2
Backout changeset 788a51ef6221 (bug 800106) because of Windows XP Kraken regression
2012-10-22 16:44:09 -04:00
Jacek Szpot
e906c7cfa4
Bug 800106: replace some NS_ALWAYS_INLINEs with MOZ_ALWAYS_INLINEs; r=ehsan
2012-10-19 10:33:33 +02:00
Isaac Aggrey
cbb17fe7b2
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
9e0549e4d9
Backout changeset 0f0797cdb55a (bug 800106) because of Kraken regressions on Windows XP
2012-10-15 14:19:55 -04:00
Jacek Szpot
0ebb25a85a
Bug 800106: replace NS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE; r=ehsan
2012-10-13 17:52:10 +02:00
Nathan Froyd
5f8f36ca5f
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
bdd40e5c18
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
d66cf7dc03
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
997db4d142
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Makoto Kato
222556a3d5
Bug 786579 - Remove old MSVC (<=2003) support. r=khuey
2012-09-28 16:02:40 +09:00
Steve Workman
f62d70fbb8
Bug 790807: Add 64 bit nsAString::ToInteger; r=bsmedberg
2012-09-17 21:10:50 -04:00
Ehsan Akhgari
c87c3701f1
Bug 788014 - Part 2: Reduce the inclusion of prtypes.h in the tree to help using stdint types; r=jrmuizel
...
--HG--
extra : rebase_source : 66b3b6b9858fb032bebcc070347f781bdf61770c
2012-09-06 17:54:59 -04:00
Randell Jesup
eedf93a21d
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac
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
3f950b5744
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Aryeh Gregor
903f6c9c84
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Joshua Cranmer
4b8f318e78
Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
...
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Rafael Ávila de Espíndola
5f0984bb5b
Bug 774041 - silence warning about unused private field. r=benjamin.
2012-07-16 10:57:04 -04:00
Aryeh Gregor
b0041eadcc
Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan
2012-07-13 09:33:42 +03:00
Makoto Kato
9c49d12750
Bug 769533 - Part 2. get rid of AppendWithConversion. r=jlebar
2012-07-06 18:44:20 +09:00
Jonathan Watt
6380335603
Bug 767388 - Kill NS_DEBUG. r=bz.
...
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Geoff Lankow
00f3a215c9
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Justin Lebar
40946c0dc9
Bug 756825 - Fix comments in nsPrintfCString. r=bsmedberg
2012-05-23 11:25:35 -04:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
dd87c019f1
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
...
--HG--
extra : rebase_source : 48db8595e35e95ea6ddc3a35a553d5641b8d1a42
2012-05-08 12:42:27 -04:00
Patrick Wong
30fd6e9e6a
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
e4e9885e88
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
...
--HG--
extra : rebase_source : 8d638515f4ef5b89f0ecaca5a4cc2974982d7092
2012-04-13 12:58:59 -04:00
Mark Capella
38934b4912
Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden
2012-04-02 17:21:24 -07:00
Makoto Kato
153d1dbc93
Bug 738157 - missing nsSubstring_h___. r=dbaron
2012-03-23 14:46:04 +09:00
Mats Palmgren
ce7e2c35f0
Bug 732951. r=bsmedberg
2012-03-20 19:02:38 +01:00
Nicholas Nethercote
12922d224a
Bug 682431 (part 1) - Fix up ns{String,CString} SizeOf* functions. r=bz.
...
--HG--
extra : rebase_source : 85813ee7d843b6422f1a80a36a06fb42aa93b801
2012-02-19 19:16:41 -08:00
Nicholas Nethercote
9f28cf3032
Bug 710054 - Add {nsString,nsCString}::SizeOf{In,Ex}cludingThis. r=bz.
...
--HG--
extra : rebase_source : 2f5eb0a61cc36bdefe420658a86e5badc79484df
2012-02-02 14:52:02 -08:00
Nicholas Nethercote
b7dc73868e
Bug 671299 (part 2) - Add nsStringBuffer::SizeOfIncludingThisMustBeUnshared. r=bz.
...
--HG--
extra : rebase_source : 1702e32e19828ae061c89f017f27efc75dab6cff
2012-01-02 18:19:12 -08:00
Nicholas Nethercote
a7ad4ef70e
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
e134d1c73e
Bug 712835 (part 1 of 3) - Add nsStringBuffer::SizeOfIncludingThisIfUnshared(). r=khuey.
...
--HG--
extra : rebase_source : 44f4e4139aaefb003f95df0d9fbec7e1c06e7a9f
2011-12-22 16:57:30 -08:00
Jeff Walden
841701c767
Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron
...
--HG--
extra : rebase_source : 507006c0f099da6851b585d2062267d285978ad7
2011-12-16 14:42:07 -05:00
Olli Pettay
35ff281448
Bug 711841, Null(C)String(), r=bsmedberg,glandium
2011-12-20 21:46:00 +02:00
Andrew Quartey
faa8be8d82
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
07d2a98926
Bug 698256 Add and use Substring(data, length) convenience method r=dbaron
2011-12-09 08:35:41 +00:00
Atul Aggarwal
6584c20f9e
Bug 603243 - Making nsTString_CharT(char_type c) constructor private to avoid accidental misusage.
2011-11-16 19:42:03 +05:30
Gregory Szorc
f9737cefa1
Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey
2011-11-01 15:45:23 -07:00
Jonathan Watt
8a0b72332d
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
2a602a5685
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
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Patrick McManus
c598a54eb0
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
956f798ed0
Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte
2011-09-15 08:40:17 +01:00
Neil Rashbrook
843c1fef62
Backout of bug 611503 because Android has some weird string code
2011-09-14 21:14:57 +01:00
Neil Rashbrook
430bc94bad
Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte
2011-09-14 20:21:20 +01:00
Mike Hommey
60b73b4219
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
2eb5f2b441
Merge m-c to b-s.
2011-08-28 06:00:17 -04:00
Matt Woodrow
f9d4b0bc4e
Bug 505115 - Part 15 - Add 4D Vectors, Quaternions and gfx3DMatrix functions. r=derf
2011-08-27 12:06:03 +12:00
Matheus Kerschbaum
3bcb2143b6
Bug 680625 part 0b: Remove more workarounds for past century compilers. r=ted
2011-08-26 00:35:13 +01:00
Matheus Kerschbaum
887ff1b97a
Bug 678155 - Remove NS_COM. r=bsmedberg
2011-08-18 15:46:39 +02:00
Ginn Chen
53a099ed8a
Bug 674469 - Add -xarch=sse2 flag for *SSE2.cpp with Solaris Studio compiler. r=khuey.
2011-07-28 11:40:39 +08:00
Jeff Muizelaar
d976bd144d
Bug 592009. Fix AppendPrintf to support more than 31 characters. r=bsmedberg
...
We can use vsmprintf to have the formatting code do the allocation for us.
2011-08-25 10:43:49 -04:00
Ed Morley
af1d9c6c2b
Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted
2011-06-25 16:06:02 +02:00
Ehsan Akhgari
8ac0f10f71
Bug 656607 - Let the compiler do the pointer arithmetic, instead of manually performing it; r=sicking
2011-06-08 22:02:49 -04:00
Dominic Fandrey
0ab2f46136
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-06-02 14:56:50 +02:00
Mats Palmgren
3d592e7e8c
Bug 638112 - Assertion failure: chars[length] == jschar(0). r=dbaron
2011-05-11 11:46:59 +02:00
Tyler Downer
f4c3fd0272
Bug 471588 - Remove String docs. r=dbaron DONTBUILD
2011-05-06 12:43:35 -07:00
Daniel Holbert
d3a8b8a506
Bug 624410: Add gcc-suggested parentheses in nsReadableUtils.cpp to silence build warning. r=dwitte
2011-03-29 08:47:53 -07:00
Justin Lebar
7e2c5ae50d
Bug 592557 - Eliminate uses of PR_Atomic{Increment,Decrement} functions in favor of PR_ATOMIC_{INCREMENT,DECREMENT} macros. r=bsmedberg,gal
...
--HG--
extra : rebase_source : 71069eb9c9d61131adee49279e136c8574dabc62
2011-03-28 15:58:49 -04:00
Justin Lebar
889111ec58
Bug 586698 - Add SSE versions of LossyConvertEncoding; r=tterribe,jst
2010-08-13 09:15:44 -07:00
Ehsan Akhgari
395dbdf918
Merge cedar into mozilla-central
2011-03-25 14:21:07 -04:00
Mounir Lamouri
79b90fb960
Bug 636750 (1/4) - Add ToDouble to nsTString. r=bsmedberg
2011-03-25 12:13:59 +01:00
Rafael Ávila de Espíndola
0b547569dd
Bug 623132 - Add constructor for nsCaseInsensitiveCStringComparator (which inherits from nsCStringComparator) to placate CLang; r=bsmedberg
2011-03-24 19:28:57 -04:00