8 typedef wchar_t RCHAR_T
;
9 #define RCHAR_T_MAX ((1 << 24)-1)
10 typedef wchar_t CHAR_T
;
11 #define MAX_CHAR_T 0xffffff /* XXXX */
12 typedef u_int UCHAR_T
;
17 #define STRTOUL wcstoul
18 #define SPRINTF swprintf
20 #define STRPBRK wcspbrk
21 #define TOUPPER towupper
22 #define STRSET wmemset
28 #define RCHAR_T_MAX CHAR_MAX
29 typedef u_char CHAR_T
;
30 #define MAX_CHAR_T 0xff
31 typedef u_char UCHAR_T
;
32 #define RCHAR_BIT CHAR_BIT
36 #define STRTOUL strtoul
37 #define SPRINTF snprintf
39 #define STRPBRK strpbrk
40 #define TOUPPER toupper
47 #define MEMCMP(to, from, n) \
48 memcmp(to, from, (n) * sizeof(*(to)))
49 #define MEMMOVE(p, t, len) memmove(p, t, (len) * sizeof(*(p)))
50 #define MEMCPY(p, t, len) memcpy(p, t, (len) * sizeof(*(p)))
51 #define SIZE(w) (sizeof(w)/sizeof(*w))