diff options
author | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
commit | 105ae2c382b7a2c0420be6bd7b24da661805d6d2 (patch) | |
tree | 39b4d1af3e193a0ac6091c29ec198e975aeec4ba /contrib/awk/awk.h | |
parent | 1433c9c29edb81cd29e7e2b588d73ec32b9698b6 (diff) | |
download | FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.zip FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.tar.gz |
Back out (unsigned char) cast, will use -funsigned-char instead
Diffstat (limited to 'contrib/awk/awk.h')
-rw-r--r-- | contrib/awk/awk.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/awk/awk.h b/contrib/awk/awk.h index b87a645..3ab2015 100644 --- a/contrib/awk/awk.h +++ b/contrib/awk/awk.h @@ -65,30 +65,30 @@ extern int errno; #if defined(STDC_HEADERS) || (!defined(isascii) && !defined(HAVE_ISASCII)) #define ISASCII(c) 1 #else -#define ISASCII(c) isascii((unsigned char)c) +#define ISASCII(c) isascii(c) #endif #ifdef isblank -#define ISBLANK(c) (ISASCII(c) && isblank((unsigned char)c)) +#define ISBLANK(c) (ISASCII(c) && isblank(c)) #else #define ISBLANK(c) ((c) == ' ' || (c) == '\t') #endif #ifdef isgraph -#define ISGRAPH(c) (ISASCII(c) && isgraph((unsigned char)c)) +#define ISGRAPH(c) (ISASCII(c) && isgraph(c)) #else -#define ISGRAPH(c) (ISASCII(c) && isprint((unsigned char)c) && !isspace((unsigned char)c)) +#define ISGRAPH(c) (ISASCII(c) && isprint(c) && !isspace(c)) #endif -#define ISPRINT(c) (ISASCII (c) && isprint ((unsigned char)c)) -#define ISDIGIT(c) (ISASCII (c) && isdigit ((unsigned char)c)) -#define ISALNUM(c) (ISASCII (c) && isalnum ((unsigned char)c)) -#define ISALPHA(c) (ISASCII (c) && isalpha ((unsigned char)c)) -#define ISCNTRL(c) (ISASCII (c) && iscntrl ((unsigned char)c)) -#define ISLOWER(c) (ISASCII (c) && islower ((unsigned char)c)) -#define ISPUNCT(c) (ISASCII (c) && ispunct ((unsigned char)c)) -#define ISSPACE(c) (ISASCII (c) && isspace ((unsigned char)c)) -#define ISUPPER(c) (ISASCII (c) && isupper ((unsigned char)c)) -#define ISXDIGIT(c) (ISASCII (c) && isxdigit ((unsigned char)c)) +#define ISPRINT(c) (ISASCII (c) && isprint (c)) +#define ISDIGIT(c) (ISASCII (c) && isdigit (c)) +#define ISALNUM(c) (ISASCII (c) && isalnum (c)) +#define ISALPHA(c) (ISASCII (c) && isalpha (c)) +#define ISCNTRL(c) (ISASCII (c) && iscntrl (c)) +#define ISLOWER(c) (ISASCII (c) && islower (c)) +#define ISPUNCT(c) (ISASCII (c) && ispunct (c)) +#define ISSPACE(c) (ISASCII (c) && isspace (c)) +#define ISUPPER(c) (ISASCII (c) && isupper (c)) +#define ISXDIGIT(c) (ISASCII (c) && isxdigit (c)) #ifdef __STDC__ |