Commit Graph

34 Commits

Author SHA1 Message Date
Mike Hommey
ee117642af Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Mike Hommey
95e047925a Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Thomas Baquet
749f667e1b Bug 1132078 - Remove useless null checks after allocating memory with |new| from xpcom/io. r=nfroyd 2015-03-02 11:59:36 +01:00
Birunthan Mohanathas
51a8149753 Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Birunthan Mohanathas
2bf30da924 Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj 2014-06-30 08:39:45 -07:00
Ehsan Akhgari
abcc1b2c2a Backed out changeset f5232023af37 (bug 1021494) because the upstream LLVM bug is now fixed.
Upstream bug: http://llvm.org/bugs/show_bug.cgi?id=20008
2014-06-25 22:19:21 -07:00
Ehsan Akhgari
87daba2982 Bug 1021494 - Fix a compiler error with clang-cl in nsScriptableInputStream.cpp; r=froydnj
--HG--
extra : rebase_source : ec8db04ca59e87caed2f523ccc1b3dd645ab37c2
2014-06-06 18:56:07 -04:00
Birunthan Mohanathas
712a60c468 Bug 995730 - Fix style violations in xpcom/io/. r=froydnj 2014-05-14 23:15:46 +03:00
Birunthan Mohanathas
1e7b94d00b Bug 995730 - Change xpcom/io/ to use 2 space indentation
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:43 +03:00
Birunthan Mohanathas
504b581650 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
a8cc49db63 Bug 965362 - Part 1: Make sure that nsScriptableInputStream::Read reads all of the allowed available bytes from the input stream; r=bsmedberg 2014-03-27 11:20:08 -04:00
Ehsan Akhgari
1278ee764d Bug 943035 - Use fallible allocation in nsScriptableInputStream::Read; r=bsmedberg 2013-11-26 11:52:48 -05:00
Mats Palmgren
44d63e6f91 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
Isaac Aggrey
0cc4b12d36 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Ehsan Akhgari
8c296bbcd4 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
Honza Bambas
5fe7a22e2c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
John Schoenick
830b3cc2e8 Bug 716556 - Fix possible buffer overflow in nsScriptableInputStream (attempt 2). r=bsmedberg 2012-02-13 11:26:28 -08:00
Phil Ringnalda
fe89213620 Back out 20ad3570d599 (bug 716556) for xpcshell orange 2012-02-08 22:11:42 -08:00
John Schoenick
8ffc9cabe7 Bug 716556 - Fix possible buffer overflow with nsScriptableInputStream, r=bsmedberg 2012-02-08 14:44:55 -08:00
David Zbarsky
f554cb10db Bug 567013 - remove unused nsIBaseStream interface r=khuey 2011-08-09 12:28:00 -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
Shawn Wilsher
b3b7f224fd Bug 590654 - Let JavaScript read embedded nulls from input streams
Adds a new method to NetUtil (readInputStreamToString) that will read a string
with or without embedded NULLs from an input stream.  Also adds the needed API
on nsIScriptableInputStream to make this happen.
r=bz
sr=biesi
a=blocking2.0
2010-08-27 12:42:51 -07:00
Benjamin Smedberg
9045c05660 Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files 2010-06-10 14:11:11 -04:00
reed@reedloden.com
23e398896c Bug 414901 - "Back out scriptable IO" [p=neil@mozilla.com (Neil Deakin) r+sr=bsmedberg a1.9b3=beltzner] 2008-02-01 18:07:49 -08:00
reed@reedloden.com
41073ec644 Back out the back out from bug 414901 until bug 415218 is fixed, or else we'll have very broken nightlies. :( 2008-02-01 00:51:29 -08:00
enndeakin@sympatico.ca
d23cbccf38 Bug 414901, back out scriptable IO api, r+sr=bsmedberg,a=beltzner 2008-01-31 11:18:07 -08:00
reed@reedloden.com
ffa3ace89f Bug 398435 - "PRBool misuse bugs in xpcom/" [p=taras r=bsmedberg a1.9=sayrer] 2007-10-19 16:26:52 -07:00
reed@reedloden.com
e2df9b35fd Backout taras's check-in for bug 398435 to help find Tp regression. 2007-10-16 17:31:01 -07:00
tglek@mozilla.com
62f4ae88bd Bug 398435. Fix prbool bugs in xpcom. r=bsmedberg a=sayrer 2007-10-15 16:40:09 -07:00
jwalden@mit.edu
f57320c98b Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change 2007-09-04 23:41:35 -07:00
enndeakin@sympatico.ca
4ada13e2d9 Bug 380813, improve scriptable io, and give file objects class info, meant to check this in a while ago, r=mfinkle,bsmedberg,sr=bsmedberg 2007-07-25 09:53:37 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00