Commit Graph

16 Commits

Author SHA1 Message Date
Trevor Saunders
801c9b79ba bug 822717 - remove checks for old gcc r=glandium 2012-12-18 13:22:28 -05: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
Mounir Lamouri
a643785d84 Bug 767519 - Add NS_flooredModulo to nsMathUtils. r=bz
--HG--
extra : rebase_source : d16e5d8e94a50c1e3319d866e3aa27ae6160edd8
2012-07-05 16:18:37 +02:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Joe Drew
64c03d88cb Bug 717047 - Use <cmath> instead of math.h in nsMathUtils.h. r=bjacob
--HG--
extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e
2012-01-10 18:04:12 -05:00
Ted Mielczarek
a4f0dbd4f0 bug 682319 - use C99 isfinite on OS X, since finite is deprecated (and not present on iOS). r=bz 2011-08-29 11:14:27 -04:00
Jeff Muizelaar
1f4cd33169 Bug 660662. Eliminate NS_(ceil|floor). r=roc
These just called the system versions.
2011-05-30 15:08:55 -04:00
Ed Morley
e3464bb801 Bug 666984 - Remove/substitute NS_FloatIsFinite since it does the same thing as NS_finite; r=jwatt 2011-08-01 13:43:23 -04:00
Ginn Chen
b16e642b85 Bug 654655 ieeefp.h is required for finite() on Solaris r=bz 2011-05-18 09:47:37 +08:00
Ed Morley
33aac194a8 Bug 652506 - Remove WinCE code from xpcom; r=bsmedberg 2011-05-01 20:59:24 +02:00
Ms2ger
ef6537b3b7 Bug 630052, part a: Add NS_finite API to nsMathUtils; r=bz 2011-04-02 14:18:40 -04:00
Zack Weinberg ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
5c26b37323 Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes 2009-11-02 11:36:43 -08:00
reed@reedloden.com
c236aa4092 Bustage fix for bug 413787. 2008-04-01 21:21:31 -07:00
reed@reedloden.com
267d919be7 Bustage fix for bug 413787. 2008-04-01 21:09:08 -07:00
reed@reedloden.com
bf68ef82c8 Bug 413787 - "NSToIntRound, NSToCoordRound code generation" [p=mmoy@yahoo.com (Michael Moy) r+sr=roc a1.9=schrep] 2008-04-01 20:47:07 -07:00
pavlov%pavlov.net
73157b52b7 adding new round/ceil/floor that behave like (or call through to) the libc versions. splitting them out in to a file so they don't have a dependency on nscoord. bug 372027. r=vlad, sr=roc, r=bsmedberg 2007-02-28 20:57:13 +00:00