Commit Graph

185 Commits

Author SHA1 Message Date
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Boris Zbarsky
3ed8ed52d8 Bug 910795 part 1. Add a way to Rebind() an nsString to be a dependent string. r=bsmedberg 2013-09-04 16:43:12 -04:00
Nathan Froyd
3be905a68a Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg,jlebar 2013-08-22 11:14:42 -04:00
Ms2ger
4922ccbc0a Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
585bec8d38 Bug 903844 - Add/update include-what-you-use annotations for various files; r=ehsan+khuey 2013-08-22 08:31:21 +02:00
Ryan VanderMeulen
e0ea2a7e48 Backed out changeset d389df23ffc9 (bug 884281) for OSX crashes.
CLOSED TREE
2013-08-21 13:27:00 -04:00
Nathan Froyd
f74603ff5e Bug 907728 - use function overloading instead of defaulted arguments for nsTSubstring::Assign; r=jlebar 2013-08-20 16:32:54 -04:00
Nathan Froyd
b490da9c25 Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg 2013-08-20 11:21:31 -04:00
Ehsan Akhgari
5ee21d6d3f Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

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 "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Gregory Szorc
5c25cc9036 No Bug - Removing empty Makefile.in files; r=me 2013-07-18 09:09:28 -07:00
Benoit Girard
5b43ee14ca Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium 2013-07-12 08:56:54 -04:00
Mike Hommey
784edc021e Bug 892401 - Remove NEW_H. r=ted 2013-07-12 09:16:41 +09:00
Joey Armstrong
9d2e7154d2 bug 883350: move SDK_HEADERS to mozbuild (file batch #1) r=mshal 2013-07-01 17:24:53 -04:00
Catalin Iacob
4f03e5bb1a Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Brian O'Keefe
5f8b5163e8 Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Masatoshi Kimura
8d08a9c8e1 Bug 883436 - Remove prtypes.h #include from nsString.h. r=ehsan 2013-06-18 07:21:06 +09:00
Mike Shal
994cfe0b6b Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Ted Mielczarek
110919af49 bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Aryeh Gregor
d183f6f9bc Bug 859817 - Make nsStringBuffer::Alloc return already_AddRefed; r=bz 2013-04-22 14:13:22 +03:00
Jeff Walden
d349e7c9e0 Bug 866988 - Remove the HAVE_CPP_PARTIAL_SPECIALIZATION autoconf define, and the test for template specialization working at all. Any compiler not supporting either of these is so incredibly doomed it's not worth the pain of testing them. Plus we use both features liberally without testing these defines first, so they're basically pointless. r=ted 2013-04-13 19:04:38 -07:00
Mike Shal
77cdb6567d Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
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