From 2b7bccbb42e8826fedd4142cf21d2386c0afb039 Mon Sep 17 00:00:00 2001 From: Roman Mohr Date: Sun, 23 Jun 2013 17:25:50 +0200 Subject: siege compatibility patches --- include/joedog/defs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/joedog/defs.h') 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 @@ -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) -- cgit