home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-02-09 | 2.9 KB | 82 lines | [TEXT/CWIE] |
- // ===========================================================================
- // UnicodeHubPrefix.h © 1997-1999 by Apple Computer, Inc., all rights reserved.
- // ===========================================================================
-
- #pragma once
-
- // Include precompiled headers.
- #ifdef powerc
- #include <PP_MacHeadersPPC>
- #else
- #include <PP_MacHeaders68K>
- #endif
-
-
- // Define debugging symbols.
- #define Debug_Throw
- #define Debug_Signal
- //#define Debug_Signal debugAction_LowLevelDebugger
-
- // Define the use of new classes for
- // RegisterAllPPClasses (in PPobClasses.cp).
- #define PP_NewClasses
-
- // Include the PowerPlant prefix file.
- #include <PP_Prefix.h>
-
-
- typedef UInt8 *BytePtr;
-
- typedef UInt32 ByteCount;
-
- typedef UInt32 ItemCount;
-
- typedef UInt32 OptionBits;
-
- typedef short RegionCode;
-
- typedef UInt32 ByteOffset;
-
- typedef const void *ConstLogicalAddress;
-
- #if 0
- enum {
- /* general text errors*/
- kTextUnsupportedEncodingErr = -8738, /* specified encoding not supported for this operation*/
- kTextMalformedInputErr = -8739, /* in DBCS, for example, high byte followed by invalid low byte*/
- kTextUndefinedElementErr = -8740, /* text conversion errors*/
- kTECMissingTableErr = -8745,
- kTECTableChecksumErr = -8746,
- kTECTableFormatErr = -8747,
- kTECCorruptConverterErr = -8748, /* invalid converter object reference*/
- kTECNoConversionPathErr = -8749,
- kTECBufferBelowMinimumSizeErr = -8750, /* output buffer too small to allow processing of first input text element*/
- kTECArrayFullErr = -8751, /* supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small*/
- kTECBadTextRunErr = -8752,
- kTECPartialCharErr = -8753, /* input buffer ends in the middle of a multibyte character, conversion stopped*/
- kTECUnmappableElementErr = -8754,
- kTECIncompleteElementErr = -8755, /* text element may be incomplete or is too long for internal buffers*/
- kTECDirectionErr = -8756, /* direction stack overflow, etc.*/
- kTECGlobalsUnavailableErr = -8770, /* globals have already been deallocated (premature TERM)*/
- kTECItemUnavailableErr = -8771, /* item (e.g. name) not available for specified region (& encoding if relevant)*/
- /* text conversion status codes*/
- kTECUsedFallbacksStatus = -8783,
- kTECNeedFlushStatus = -8784,
- kTECOutputBufferFullStatus = -8785, /* output buffer has no room for conversion of next input text element (partial conversion)*/
- /* deprecated error & status codes for low-level converter*/
- unicodeChecksumErr = -8769,
- unicodeNoTableErr = -8768,
- unicodeVariantErr = -8767,
- unicodeFallbacksErr = -8766,
- unicodePartConvertErr = -8765,
- unicodeBufErr = -8764,
- unicodeCharErr = -8763,
- unicodeElementErr = -8762,
- unicodeNotFoundErr = -8761,
- unicodeTableFormatErr = -8760,
- unicodeDirectionErr = -8759,
- unicodeContextualErr = -8758,
- unicodeTextEncodingDataErr = -8757
- };
- #endif
-