diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
commit | b585a9fad59f9d0c07681778b97d36b67bd9748d (patch) | |
tree | d809e30a40f38fd19b05d2cbd920187e84108432 /readline/chardefs.h | |
parent | 84041b4c47edb0461f3b82afb77ca2d81819ebfa (diff) | |
download | gdb-FSF.zip gdb-FSF.tar.gz gdb-FSF.tar.bz2 |
import of readlilne 5.1FSF
Diffstat (limited to 'readline/chardefs.h')
-rw-r--r-- | readline/chardefs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/readline/chardefs.h b/readline/chardefs.h index a537be2..def3a11 100644 --- a/readline/chardefs.h +++ b/readline/chardefs.h @@ -77,11 +77,17 @@ # define isxdigit(c) (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F')) #endif -#define NON_NEGATIVE(c) ((unsigned char)(c) == (c)) +#if defined (CTYPE_NON_ASCII) +# define NON_NEGATIVE(c) 1 +#else +# define NON_NEGATIVE(c) ((unsigned char)(c) == (c)) +#endif /* Some systems define these; we want our definitions. */ #undef ISPRINT +/* Beware: these only work with single-byte ASCII characters. */ + #define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) #define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) #define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) |