Commit Graph

20 Commits

Author SHA1 Message Date
Tom Schuster
f39e81815a Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01: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
Nicholas Nethercote
2585de9a07 Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Jeff Walden
0de2cfbca3 Bug 794323 - Remove the legacy JSON parsing mode, now that Firefox session store code doesn't need it. r=luke for the JS bits, r=jlebar for the DOM bits, r=mak77 for the browser/toolkit bits
--HG--
extra : rebase_source : b7a422eb52fe8e435143dfcc435d56e4886859e6
2013-05-23 15:28:31 -07:00
Joshua Cranmer
9b438430fc Bug 856108 - Port static analyses to clang, part 2b: use MOZ_STACK_CLASS in dom. r=Ms2ger 2013-04-11 22:20:18 -05:00
Jose Cortes
7b76878f61 Bug 842186 - Replace use of jsval with JS::Value in h and cpp files in the dom/bindings/ dom/plugins/ dom/src/ dom/activities/ directories. r=jwalden
--HG--
extra : rebase_source : 2757a7ab265153fa4c769a69a4947b9258e4413e
2013-04-02 16:05:37 -07: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
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ms2ger
5eaaaa2fc8 Bug 702583 - Part b: Use IDL for nsIJSON.encode*; r=bz 2011-11-26 11:21:47 +01:00
Ms2ger
77bc8d10ec Bug 702583 - Part a: Use IDL for nsIJSON.decode*; r=bz 2011-11-26 11:21:29 +01: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
Jeff Walden
f0c481fe5a Bug 643590 - Convert nsJSON::DecodeFromStream to buffer all JSON data, then process it all in one swell foop once it's all received. r=jst 2011-03-21 11:42:14 -07:00
Jeff Walden
8c707b8116 Bug 564621, bug 582077 - JSON.parse shouldn't allow {"a" : "b",} or [1,]. But, because Firefox's bookmarks "JSON" generation has historically generated invalid JSON (it no longer does, see bug 505656), preserve a "legacy" mode of parsing that can be used to load bookmarks.json files (at least until we no longer support migration from Firefox <4 profiles :-) ). r=sayrer 2010-07-14 13:48:36 -05:00
Benjamin Smedberg
c611ebcd81 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
Andreas Gal
e4d01dd682 Don't include JS-engine internal header files in header files outside the JS engine (bug 549440, r=jst). 2010-03-04 16:17:05 -08:00
Robert Sayre
cf88f19458 Bug 408838 - DOM binding for native JSON. r+sr=shaver 2008-10-01 02:13:58 -04:00
Benjamin Smedberg
a0071aaa50 Bug 446132 - Allocate nsJSONWriter on the stack, r=sayrer sr=jst 2008-08-11 15:06:27 -04:00
sayrer@gmail.com
cd75066f18 Bug 424035. Crash [@ JS_IsArrayObject] when trying to decode a bogus JSON string. r=shaver 2008-03-20 13:34:38 -07:00
sayrer@gmail.com
2c430fb3d5 Bug 410890. nsJSON speedups. r=crowder, sr=jst, a=schrep 2008-02-06 23:19:26 -08:00
sayrer@gmail.com
bf0d4a7536 Bug 387522. Native JSON support. r=crowder/jst, sr=brendan 2007-12-27 13:34:03 -08:00