00001
00002
00003
00004
00005 #ifndef INTEGER_H_
00006 #define INTEGER_H_
00007
00008 #include <inttypes.h>
00009 #include <string>
00010
00011
00012
00013 typedef wchar_t CHAR;
00014
00015 typedef std::basic_string<CHAR, std::char_traits<CHAR>, std::allocator<CHAR> > CString;
00016 #if WCHAR_MAX > 65535
00017
00018 # define INTERNAL_ENCODING "UCS-4-INTERNAL"
00019 #else
00020 # define INTERNAL_ENCODING "UCS-2-INTERNAL"
00021 #endif
00022
00023
00024 typedef int8_t INT8;
00025
00026 typedef uint8_t UINT8;
00027
00028
00029 typedef int16_t INT16;
00030 typedef uint16_t UINT16;
00031
00032
00033 typedef int32_t INT32;
00034 typedef uint32_t UINT32;
00035
00036
00037 typedef int64_t INT64;
00038 typedef uint64_t UINT64;
00039
00040
00041
00042 typedef bool BOOL;
00043 #ifndef FALSE
00044 #define FALSE (0)
00045 #endif
00046 #ifndef TRUE
00047 #define TRUE (1)
00048 #endif
00049 #ifndef NULL
00050 #define NULL 0
00051 #endif
00052
00053 #endif
00054