diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-16 18:25:44 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-16 18:25:44 +0000 |
| commit | 53364637929b4dac6d61f4c7ab1248b09b9e5f0a (patch) | |
| tree | dccaa8ce03c22906339b5a6894cd04883243d466 /gnu | |
| parent | 1e09e5bdbfb6901bf39674a66ad5791d759f6c97 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/sort/system.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gnu/usr.bin/sort/system.h b/gnu/usr.bin/sort/system.h index bfb19e121c34..ed0b26b0dbc5 100644 --- a/gnu/usr.bin/sort/system.h +++ b/gnu/usr.bin/sort/system.h @@ -167,30 +167,30 @@ char *getenv (); #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) #define ISASCII(c) 1 #else -#define ISASCII(c) isascii(c) +#define ISASCII(c) isascii((unsigned char)c) #endif #ifdef isblank -#define ISBLANK(c) (ISASCII (c) && isblank (c)) +#define ISBLANK(c) (ISASCII (c) && isblank ((unsigned char)c)) #else #define ISBLANK(c) ((c) == ' ' || (c) == '\t') #endif #ifdef isgraph -#define ISGRAPH(c) (ISASCII (c) && isgraph (c)) +#define ISGRAPH(c) (ISASCII (c) && isgraph ((unsigned char)c)) #else -#define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c)) +#define ISGRAPH(c) (ISASCII (c) && isprint ((unsigned char)c) && !isspace ((unsigned char)c)) #endif -#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)) +#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)) /* Disable string localization for the time being. */ #undef _ |
