| Index: src/globals.h
|
| ===================================================================
|
| --- src/globals.h (revision 6941)
|
| +++ src/globals.h (working copy)
|
| @@ -181,10 +181,6 @@
|
| #define USING_BSD_ABI
|
| #endif
|
|
|
| -// Code-point values in Unicode 4.0 are 21 bits wide.
|
| -typedef uint16_t uc16;
|
| -typedef int32_t uc32;
|
| -
|
| // -----------------------------------------------------------------------------
|
| // Constants
|
|
|
| @@ -228,7 +224,16 @@
|
| const int kBinary32MantissaBits = 23;
|
| const int kBinary32ExponentShift = 23;
|
|
|
| +// ASCII/UC16 constants
|
| +// Code-point values in Unicode 4.0 are 21 bits wide.
|
| +typedef uint16_t uc16;
|
| +typedef int32_t uc32;
|
| +const int kASCIISize = kCharSize;
|
| +const int kUC16Size = sizeof(uc16); // NOLINT
|
| +const uc32 kMaxAsciiCharCode = 0x7f;
|
| +const uint32_t kMaxAsciiCharCodeU = 0x7fu;
|
|
|
| +
|
| // The expression OFFSET_OF(type, field) computes the byte-offset
|
| // of the specified field relative to the containing type. This
|
| // corresponds to 'offsetof' (in stddef.h), except that it doesn't
|
|
|