gecko/other-licenses/snappy
Ehsan Akhgari 0fd9123eac 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
..
src
Makefile.in
README
snappy-stubs-public.h

See src/README for the README that ships with snappy.

Mozilla does not modify the actual snappy source with the exception of the
'snappy-stubs-public.h' header. We have replaced its build system with our own.

Snappy comes from:
  http://code.google.com/p/snappy/

We are currently using revision: 56

To upgrade to a newer version:
  1. Check out the new code using subversion.
  2. Update 'snappy-stubs-public.h' in this directory with any changes that were
     made to 'snappy-stubs-public.h.in' in the new source.
  3. Copy the major/minor/patch versions from 'configure.ac' into
     'snappy-stubs-public.h'.
  4. Copy all source files from the new version into the src subdirectory. The
     following files are not needed:
       - 'autom4te.cache' subdirectory
       - 'm4' subdirectory
       - 'testdata' subdirectory
       - 'autogen.sh'
       - 'configure.ac'
       - 'Makefile.am'
  5. Update the revision stamp in this file.