diff options
| author | 2023-06-19 09:30:27 +0200 | |
|---|---|---|
| committer | 2023-06-19 09:30:27 +0200 | |
| commit | 7a6b76f519695d686c378f2450658504448c75f6 (patch) | |
| tree | ac40120bfca8658b79a79d9ea22115056ce01aa0 /parse.h | |
| parent | 8608070c077b067611b06dba72a4115a2094e124 (diff) | |
move ctype to common.h
Diffstat (limited to 'parse.h')
| -rw-r--r-- | parse.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -113,17 +113,6 @@ enum typetag parsenumlit(uvlong *, double *, const struct token *, bool ispp); void initparser(struct parser *, const char *file); void parse(struct parser *); -/***********/ -/** CTYPE **/ -/***********/ - -#define aisprint(c) in_range(c, ' ', '~') -#define aisdigit(c) in_range(c, '0', '9') -#define aisodigit(c) in_range(c, '0', '7') -#define aisalpha(c) in_range((c)|0x20, 'a', 'z') -static inline bool aisspace(int c) { return c == ' ' || in_range(c, '\t', '\r'); } -static inline bool aisxdigit(int c) { return aisdigit(c) || in_range(c|0x20, 'a', 'f'); } - /************/ /* ANALYSIS */ /************/ |