Eric Rahm
|
4879ae86f4
|
Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj
|
2015-05-19 11:15:34 -07:00 |
|
Andrew McCreight
|
1e0f87e27d
|
Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj
|
2015-04-09 10:25:05 -07:00 |
|
Ehsan Akhgari
|
883849ee32
|
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
|
2015-03-21 12:28:04 -04:00 |
|
Nathan Froyd
|
772bdaecb8
|
Bug 1117853 - remove duplicate mozilla/Attributes.h #include; r=bsmedberg
|
2014-01-22 18:37:02 -05:00 |
|
Birunthan Mohanathas
|
16471161bb
|
Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj
|
2014-08-25 12:17:24 -07:00 |
|
Ehsan Akhgari
|
4af9c14370
|
Bug 1048239 - Fix more bad implicit constructors in XPCOM; r=froydnj
|
2014-08-05 09:36:32 -04:00 |
|
Birunthan Mohanathas
|
68ba4f3767
|
Bug 1022456 - Convert xpcom/ds/ to Gecko style. r=froydnj
|
2014-07-09 08:15:21 -07:00 |
|
Benoit Jacob
|
60d536773a
|
Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg
|
2014-05-08 21:03:35 -04:00 |
|
Birunthan Mohanathas
|
5f1fde8824
|
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
|
2014-04-27 03:06:00 -04:00 |
|
Ehsan Akhgari
|
186680d83a
|
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
|
2014-03-27 16:38:33 -04:00 |
|
Ehsan Akhgari
|
1b83407ce9
|
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
|
2014-01-04 10:02:17 -05:00 |
|
Mina Almasry
|
22a7e34984
|
Bug 863966 - Improve perf of querySelector by caching selector list. r=bz
|
2013-10-09 09:20:45 -04:00 |
|
Kyle Huey
|
7ea5a68da2
|
Bug 901630: Remove support for the cc thread. r=mccr8
|
2013-08-13 10:45:32 -07:00 |
|
Ehsan Akhgari
|
2824b29025
|
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 |
|
Chris Peterson
|
cbe66ccea3
|
Bug 839962 - Part 1: Replace some XPCOM refcount NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
|
2013-02-07 20:50:05 -08:00 |
|
Mats Palmgren
|
5f5d30eb5b
|
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 |
|
Ehsan Akhgari
|
e368dc9c85
|
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
|
d0ad5a7d0c
|
Bug 777292 part 2 - Change all nsnull to nullptr
|
2012-07-30 17:20:58 +03:00 |
|
Gervase Markham
|
82ff7027aa
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Mark Capella
|
bfa59371ce
|
Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden
|
2012-04-02 17:21:24 -07:00 |
|
Jeff Walden
|
2ad32407a3
|
Bug 714572 - Fix nearly all clang warnings building image/. r=bholley
--HG--
extra : rebase_source : 585983448ac6dae86d309530d5ddbda856bdcfa9
|
2012-01-02 14:23:41 -06:00 |
|
Jeff Muizelaar
|
8406631ea8
|
Bug 714649. Make ExpirationTrackerObserver final. r=roc
This deals with the warning about virtual destructors and will probably let us
devirtualize the call to ->Destroy()
|
2012-01-02 12:23:00 -05:00 |
|
Jiten Thakkar
|
6f58530101
|
Bug 683517 - Make nsExpirationTracker expire all tracked objects when memory-pressure notification is observed. r=roc
|
2011-10-28 18:36:00 -04:00 |
|
Ehsan Akhgari
|
92064e6d3f
|
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
|
d2b70213ac
|
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 |
|
Dominic Fandrey
|
968bf5196a
|
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
|
2011-06-02 14:56:50 +02:00 |
|
Robert O'Callahan
|
06e139fe2b
|
Bug 564991. Part 22: Mark scrolled elements as inactive after a timeout. r=mats
|
2010-07-16 09:08:05 +12:00 |
|
Joe Drew
|
692689e7af
|
Bug 449543 - nsExpirationTracker's Iterator doesn't work properly, r=roc a=bsmedberg
|
2008-08-19 10:27:28 -04:00 |
|
roc+@cs.cmu.edu
|
672e66c2d2
|
Bug 392873. Add debugging code to help track down a crash in the bfcache-expiry code. r+sr=bzbarsky,a=damon
|
2007-09-30 14:34:56 -07:00 |
|
jwalden@mit.edu
|
6d7584839a
|
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 |
|
wtc@google.com
|
10490a7e00
|
Bugzilla Bug 376568: the definition of PR_STATIC_ASSERT has been moved fromprerror.h to prlog.h. r=jwalden sr=roc
|
2007-05-28 07:51:08 -07:00 |
|
jwalden@mit.edu
|
9de7196002
|
Bug 376568 - Use NSPR static assertion to check parametrized value of K on nsExpirationTracker. r+sr=roc
|
2007-04-12 15:19:26 -07:00 |
|
roc+@cs.cmu.edu
|
ed1b4a6e54
|
Bug 368270. Implement nsExpirationTracker, a data structure for managing the timed expiration of many objects. r+sr=sicking
|
2007-03-26 20:38:21 -07:00 |
|