Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
ctype.h
Go to the documentation of this file.
1#ifndef _MSL_COMMON_CTYPE_H
2#define _MSL_COMMON_CTYPE_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define EOF -1L
9
10extern unsigned char __ctype_map[];
11extern unsigned char __lower_map[];
12extern unsigned char __upper_map[];
13
14#define __control_char 0x01
15#define __motion_char 0x02
16#define __space_char 0x04
17#define __punctuation 0x08
18#define __digit 0x10
19#define __hex_digit 0x20
20#define __lower_case 0x40
21#define __upper_case 0x80
22
23#define __letter (__lower_case | __upper_case)
24#define __alphanumeric (__letter | __digit)
25#define __graphic (__alphanumeric | __punctuation)
26#define __printable (__graphic | __space_char)
27#define __whitespace (__motion_char | __space_char)
28#define __control (__motion_char | __control_char)
29#define __zero_fill(c) ((int)(unsigned char)(c))
30
31int tolower(int);
32
33inline int isalpha(int c) { return (int)(__ctype_map[(unsigned char)c] & __letter); }
34inline int isdigit(int c) { return (int)(__ctype_map[(unsigned char)c] & __digit); }
35inline int isspace(int c) { return (int)(__ctype_map[(unsigned char)c] & __whitespace); }
36inline int isupper(int c) { return (int)(__ctype_map[(unsigned char)c] & __upper_case); }
37inline int isxdigit(int c) { return (int)(__ctype_map[(unsigned char)c] & __hex_digit); }
38// added underscore to avoid naming conflicts
39inline int _tolower(int c) { return (c == -1 ? -1 : (int)__lower_map[(unsigned char)c]); }
40inline int toupper(int c) { return (c == -1 ? -1 : (int)__upper_map[(unsigned char)c]); }
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* _MSL_COMMON_CTYPE_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
int isalpha(int c)
Definition ctype.h:33
int isdigit(int c)
Definition ctype.h:34
int tolower(int)
Definition ctype.c:52
int isspace(int c)
Definition ctype.h:35
int _tolower(int c)
Definition ctype.h:39
int toupper(int c)
Definition ctype.h:40
unsigned char __upper_map[]
Definition ctype.c:64
unsigned char __ctype_map[]
Definition ctype.c:16
unsigned char __lower_map[]
Definition ctype.c:30
int isupper(int c)
Definition ctype.h:36
int isxdigit(int c)
Definition ctype.h:37
c
Definition e_acos.c:97