Commit Graph
13 Commits
Author SHA1 Message Date
Ehsan Akhgari 243c878d26 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
[email protected] 75aac6be37 Bug 256272 - revert license to original BSD-like "test code license"; this code was accidentally tri-licensed a few months ago. Thanks to Adam Lock for the script to do this. 2004-09-12 15:59:33 +00:00
[email protected] 4ba0518141 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 22:01:16 +00:00
[email protected] f4be930d3b Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 20:32:55 +00:00
[email protected] 46ce738546 166917. Clean up xpcom SDK includes. [email protected], [email protected], [email protected] 2002-09-07 17:13:19 +00:00
[email protected] 7df99ea235 Sample code changed to use MIT licence. b=82339 2002-06-19 14:25:27 +00:00
[email protected] 419be9f681 License changes, take 2. Bug 98089. mozilla/embedding/. 2001-09-25 22:58:40 +00:00
[email protected] 30a09f1d88 Oops. 2001-09-20 00:02:59 +00:00
[email protected] a43c5e83a8 bug #98089: ripped new license 2001-09-19 22:39:41 +00:00
[email protected] 043e203bbc implement ShowAsModal and remove nsIPrompt implementation; requirements for fielding default nsIPrompts. bug 75745 r=blizzard,hyatt 2001-04-21 02:45:37 +00:00
[email protected] 8c6b185a4c Cleaned up code style, indentation, replaced tabs with spaces. Added dummy implementations of nsITooltipListener and nsIContextMenuListener. 2001-03-28 11:20:18 +00:00
[email protected] b9c9c6247e change name of WindowCreator function to fix inexplicable Windows error necessitating careful ordering of includes files 2001-02-26 02:17:02 +00:00
[email protected] 2682fe31b8 implementation of WindowCreator callback. bug 67368 r=hyatt,pinkerton 2001-02-17 02:24:53 +00:00