25 #ifndef _OSSYSTYPES_H_ 26 #define _OSSYSTYPES_H_ 29 #ifndef __STDC_LIMIT_MACROS 30 #define __STDC_LIMIT_MACROS 32 #ifndef __STDC_CONSTANT_MACROS 33 #define __STDC_CONSTANT_MACROS 35 #ifndef __STDC_FORMAT_MACROS 36 #define __STDC_FORMAT_MACROS 39 #if (!defined(BREW_MODULE) && !defined(FLAT_BREW)) 46 #if !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__) \ 47 && !defined(__vxworks) && !defined(__SYMBIAN32__) && !defined(NIOS2) 60 #define NumberOf(x) (sizeof(x)/sizeof(x[0])) 66 #define OSVOIDARG void 69 typedef void* OSVoidPtr;
70 typedef unsigned char OSBOOL;
71 typedef signed char OSINT8;
72 typedef unsigned char OSUINT8;
73 typedef short OSINT16;
74 typedef unsigned short OSUINT16;
75 typedef OSUINT8 OSOCTET;
76 typedef OSUINT8 OSUTF8CHAR;
77 typedef OSUINT16 OSUNICHAR;
78 typedef double OSREAL;
79 typedef double OSDOUBLE;
80 typedef float OSFLOAT;
83 typedef unsigned long OSUINT32;
84 #define OSINTCONST(val) val##L 85 #define OSUINTCONST(val) val##UL 88 typedef unsigned int OSUINT32;
89 #define OSINTCONST(val) val 90 #define OSUINTCONST(val) val##u 92 typedef OSUINT32 OS32BITCHAR;
93 typedef size_t OSSIZE;
95 #define OSUINT32_MAX ((OSUINT32)4294967295UL) 96 #define OSINT32_MAX ((OSINT32)2147483647L) 97 #define OSINT32_MIN ((OSINT32)(-OSINT32_MAX-1)) 99 #define OSUINT16_MAX ((OSUINT16)65535UL) 100 #define OSINT16_MAX ((OSINT16)32767L) 101 #define OSINT16_MIN ((OSINT16)(-OSINT16_MAX-1)) 103 #define OSUINT8_MAX ((OSUINT8)255U) 104 #define OSINT8_MAX ((OSINT8)127L) 105 #define OSINT8_MIN ((OSINT8)(-OSINT8_MAX-1)) 107 #define OSREALMAX ((OSREAL)DBL_MAX) 108 #define OSREALMIN ((OSREAL)-DBL_MAX) 110 #define OSU32NULLIDX OSUINT32_MAX 111 #define OSNULLINDEX ((OSSIZE)-1) 112 #define OSSIZE_MAX OSNULLINDEX 131 #if defined(_MSC_VER) 134 #define OSSIZEFMT "%u" 137 #define OSSIZEFMT "%Iu" 139 #elif defined(__hpux) || defined(VMS) || defined(_VMS) 141 #define OSSIZEFMT "%u" 144 #define OSSIZEFMT "%zu" 150 #if !defined(_NO_INT64_SUPPORT) 151 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 153 typedef __int64 OSINT64;
154 typedef unsigned __int64 OSUINT64;
157 #define OSINT64FMT_TS "I64d" 158 #define OSINT64FMT "%I64d" 159 #define OSUINT64FMT "%I64u" 160 #define OSINT64FMTX "%I64x" 161 #define OSINT64MAX _I64_MAX 162 #define OSUINT64MAX _UI64_MAX 163 #define OSINT64MIN _I64_MIN 164 #define OSI64CONST(val) val##i64 165 #define OSUI64CONST(val) val##ui64 167 #elif defined(INT64_MAX) 169 typedef int64_t OSINT64;
170 typedef uint64_t OSUINT64;
173 #define OSINT64FMT_TS PRId64 174 #define OSINT64FMT "%" PRId64 175 #define OSUINT64FMT "%" PRIu64 176 #define OSINT64FMTX "%" PRIx64 178 #define OSINT64FMT_TS "lld" 179 #define OSINT64FMT "%lld" 180 #define OSUINT64FMT "%llu" 181 #define OSINT64FMTX "%llx" 183 #define OSINT64MAX INT64_MAX 184 #define OSUINT64MAX UINT64_MAX 185 #define OSINT64MIN INT64_MIN 186 #define OSI64CONST(val) INT64_C(val) 187 #define OSUI64CONST(val) UINT64_C(val) 191 typedef long long OSINT64;
192 typedef unsigned long long OSUINT64;
193 #define OSINT64FMT_TS "lld" 194 #define OSINT64FMT "%lld" 195 #define OSUINT64FMT "%llu" 196 #define OSINT64FMTX "%llx" 197 #define OSI64CONST(val) val##LL 198 #define OSUI64CONST(val) val##ULL 202 #define OSINT64MAX LLONG_MAX 203 #define OSUINT64MAX ULLONG_MAX 204 #define OSINT64MIN LLONG_MIN 205 #elif defined LONG_LONG_MAX 206 #define OSINT64MAX LONG_LONG_MAX 207 #define OSUINT64MAX ULONG_LONG_MAX 208 #define OSINT64MIN LONG_LONG_MIN 209 #elif defined __INT64_MAX 210 #define OSINT64MAX __INT64_MAX 211 #define OSUINT64MAX __UINT64_MAX 212 #define OSINT64MIN __INT64_MIN 214 #warning "Using LONG_MAX for 64-bit maximum." 215 #define OSINT64MAX LONG_MAX 216 #define OSUINT64MAX ULONG_MAX 217 #define OSINT64MIN LONG_MIN 226 typedef long OSINT64;
227 typedef unsigned long OSUINT64;
228 #define OSINT64FMT_TS "ld" 229 #define OSINT64FMT "%ld" 230 #define OSUINT64FMT "%lu" 231 #define OSINT64FMTX "%lx" 232 #define OSINT64MAX LONG_MAX 233 #define OSUINT64MAX ULONG_MAX 234 #define OSINT64MIN LONG_MIN 235 #define OSI64CONST(val) val##L 236 #define OSUI64CONST(val) val##UL 239 #define OSU64NULLIDX OSUINT64MAX 255 typedef struct OSDynOctStr64 {
262 typedef OSDynOctStr64 OSOpenType64;
266 typedef struct OSUTF8NVP {
267 const OSUTF8CHAR* name;
268 const OSUTF8CHAR* value;
271 typedef OSUTF8NVP OSAnyAttr;
272 typedef OSUTF8NVP OSAnyElement;
284 const OSUTF8CHAR* value;
304 const OSUTF8CHAR* name;
319 const OSUTF8CHAR* name;
324 typedef struct OSDecimalFmt {
326 OSINT8 fractionDigits;
328 OSINT8 fractionMinDigits;
331 OSINT8 integerMaxDigits;
334 OSINT8 integerMinDigits;
341 const char*
const* patterns;
347 typedef struct OSDoubleFmt {
349 OSINT8 fractionDigits;
351 OSINT8 fractionMinDigits;
354 OSINT8 integerMaxDigits;
357 OSINT8 integerMinDigits;
372 OSBOOL expSignPresent;
376 #if defined(_MSC_VER) 378 #pragma warning(disable: 4100) 380 #pragma warning(disable: 4512) UTF-8 name and length structure.
XML UTF-8 character string structure.
Dynamic binary string structure.
Numeric date/time structure.
Numeric date/time structure.