diff options
author | Roman Mohr <roman@fenkhuber.at> | 2013-06-23 17:25:50 +0200 |
---|---|---|
committer | Roman Mohr <roman@fenkhuber.at> | 2013-06-23 17:26:43 +0200 |
commit | 2b7bccbb42e8826fedd4142cf21d2386c0afb039 (patch) | |
tree | 0fef5c0056a97e08a713e965cbf385ec3000e7cf /include/joedog/defs.h | |
parent | 578291641606aa0eaf9d28b125cb634a9ef27540 (diff) | |
download | libjoedog-master.tar.gz libjoedog-master.tar.xz libjoedog-master.zip |
Diffstat (limited to 'include/joedog/defs.h')
-rw-r--r-- | include/joedog/defs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/joedog/defs.h b/include/joedog/defs.h index da35665..2b33f2b 100644 --- a/include/joedog/defs.h +++ b/include/joedog/defs.h @@ -1,6 +1,6 @@ #ifndef JOEDOG_DEFS_H #define JOEDOG_DEFS_H -#define private static +#define private static #define public #include <ctype.h> @@ -10,9 +10,10 @@ #define ISCOMMENT(x) (x == '#') #define ISSEPARATOR(x) (('='==(x))||(':'==(x))) #define ISSPACE(x) isspace((unsigned char)(x)) -#define ISOPERAND(x) ('<'==(x)||'>'==(x)||'='==(x)) +#define ISOPERAND(x) ('<'==(x)||'>'==(x)||'='==(x)) #define ISDIGIT(x) isdigit ((unsigned char)(x)) -#define ISQUOTE(x) (x == '"' || x == '\'') +#define ISNUMBER(v) (((v) > (char)0x2f) && ((v) < (char)0x3a)) +#define ISQUOTE(x) (x == '"' || x == '\'') #if STDC_HEADERS # define TOLOWER(Ch) tolower (Ch) # define TOUPPER(Ch) toupper (Ch) |