Seth Fowler
|
f9cdc752b1
|
Bug 912299 - Make RefCounted's refcount field mutable. r=waldo
|
2013-09-06 13:32:55 -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 |
|
Ms2ger
|
51f391870b
|
Bug 896341 - Update include guards and modelines in MFBT; r=Waldo
|
2013-07-24 09:41:39 +02:00 |
|
Mike Hommey
|
32f20f1c9f
|
Bug 864035 - Add an atomic RefCounted and WeakPtr implementation. r=Waldo
|
2013-05-18 09:52:53 +02:00 |
|
Ehsan Akhgari
|
16e22cc0af
|
Bug 863884 - Prepare WeakPtr to support a thread-safe variant; r=Waldo
|
2013-04-19 17:59:01 -04:00 |
|
Nicholas Cameron
|
c08ac751c5
|
Bug 837297; change RefCounted::dead to a define; r=waldo
|
2013-02-05 16:53:57 +13:00 |
|
Mike Hommey
|
66cbfc73f8
|
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
|
2013-01-29 09:35:16 +01:00 |
|
Mike Hommey
|
17103848ed
|
Backout changeset bc2bbe9836c7 (bug 834769) for bustage.
|
2013-01-29 09:49:16 +01:00 |
|
Mike Hommey
|
19f90e4909
|
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
|
2013-01-29 09:35:16 +01:00 |
|
Jeff Walden
|
986ff95100
|
Style patrol to make everything conform to mfbt/STYLE. No bug, r=sparky
|
2012-06-03 20:36:43 -07:00 |
|
Gervase Markham
|
82ff7027aa
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Jeff Walden
|
eaa4a32656
|
Add introductory comments to the files in mfbt/ that aren't copied from elsewhere, to facilitate easier MXR directory skimming. No bug, r=lumpy
--HG--
extra : rebase_source : dd834c64e625a0184b64d13e2a2e6fd8960ca832
|
2011-12-28 10:48:54 -06:00 |
|
Jeff Walden
|
b00479bc34
|
Bug 712129 - Move MOZ*INLINE macros from Util.h into Attributes.h, where they make more sense. r=luke
--HG--
extra : rebase_source : f62a21c8833c9d5eb7351b18ba14f14d4286b3c0
|
2011-12-19 14:45:52 -05:00 |
|
Jeff Walden
|
05dcc6d231
|
Bug 712129 - Move assertion code into a new mfbt/Assertions.h header. r=luke
--HG--
extra : rebase_source : 6587b6aa4180493c48b0663bc627543020a21deb
|
2011-12-19 14:28:35 -05:00 |
|
Jeff Walden
|
d2d9341b8a
|
Bug 704127 - Move C++ attribute support out of mozilla/Types.h and into mozilla/Attributes.h so that it can be used by code that's not yet compatible with the full mfbt experience. r=cjones
--HG--
extra : rebase_source : 7b653358a73f222c055f5139e33ca470475f88c9
|
2011-11-20 12:22:51 -08:00 |
|
Joe Drew
|
7b8b90225a
|
Bug 702799 - Don't modify a RefPtr when using the implicit conversion to TemporaryRef. r=cjones
|
2011-11-21 16:42:07 -05:00 |
|
Jeff Walden
|
0dc3caec01
|
Bug 701183 - Make MOZ_DELETE use deleted function syntax in gcc when it's possible to do so without causing a warning. r=cjones
--HG--
extra : rebase_source : 6f452c9cc9dcdc772991ee1056975bf7b0b4bb5b
|
2011-11-10 14:19:28 -08:00 |
|
Bas Schouten
|
4d1fc71a1e
|
Followup to bug 661973: Fix bug with COM outparams and add convenience operators. r=cjones
|
2011-06-21 21:44:00 -07:00 |
|
Chris Jones
|
d8c3a76fe7
|
Bug 661973: Implement mozilla::RefCounted, RefPtr, TemporaryRef, OutParamRef, and byRef. r=Bas,luke sr=roc
|
2011-06-16 20:40:20 -07:00 |
|