diff options
author | Johannes Schickel | 2012-12-13 20:58:55 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-12-13 21:08:48 +0100 |
commit | 2773f5d7afc381205b5e0fcb8b20700007472516 (patch) | |
tree | d30e3de3e38007e956cae3f6b32f7b771ceddfc5 /common | |
parent | b0ba4b01a4fee3409768bdced4de6719b51297bc (diff) | |
download | scummvm-rg350-2773f5d7afc381205b5e0fcb8b20700007472516.tar.gz scummvm-rg350-2773f5d7afc381205b5e0fcb8b20700007472516.tar.bz2 scummvm-rg350-2773f5d7afc381205b5e0fcb8b20700007472516.zip |
COMMON: Forbid symbols for the rest of is* from ctype.h.
I also moved the isprint case to the correct position.
This adds a FIXME to our lua code from sword25, which uses iscntrl directly.
Diffstat (limited to 'common')
-rw-r--r-- | common/forbidden.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/common/forbidden.h b/common/forbidden.h index 46890e0269..9050114442 100644 --- a/common/forbidden.h +++ b/common/forbidden.h @@ -333,11 +333,21 @@ #define isalpha(a) FORBIDDEN_SYMBOL_REPLACEMENT #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_iscntrl + #undef iscntrl + #define iscntrl(a) FORBIDDEN_SYMBOL_REPLACEMENT + #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isdigit #undef isdigit #define isdigit(a) FORBIDDEN_SYMBOL_REPLACEMENT #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isgraph + #undef isgraph + #define isgraph(a) FORBIDDEN_SYMBOL_REPLACEMENT + #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isnumber #undef isnumber #define isnumber(a) FORBIDDEN_SYMBOL_REPLACEMENT @@ -348,6 +358,16 @@ #define islower(a) FORBIDDEN_SYMBOL_REPLACEMENT #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isprint + #undef isprint + #define isprint(a) FORBIDDEN_SYMBOL_REPLACEMENT + #endif + + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_ispunct + #undef ispunct + #define ispunct(a) FORBIDDEN_SYMBOL_REPLACEMENT + #endif + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isspace #undef isspace #define isspace(a) FORBIDDEN_SYMBOL_REPLACEMENT @@ -358,9 +378,9 @@ #define isupper(a) FORBIDDEN_SYMBOL_REPLACEMENT #endif - #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isprint - #undef isprint - #define isprint(a) FORBIDDEN_SYMBOL_REPLACEMENT + #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isxdigit + #undef isxdigit + #define isxdigit(a) FORBIDDEN_SYMBOL_REPLACEMENT #endif #endif // FORBIDDEN_SYMBOL_EXCEPTION_ctype_h |