From 2a94afb88c2fd25a9dee69d242d323684877583a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 May 1996 01:51:26 +0000 Subject: [PATCH] [IN_CTYPE_DOMAIN]: Rename from ISASCII. --- lib/backupfile.c | 6 +++--- lib/memcasecmp.c | 6 +++--- lib/regex.c | 30 +++++++++++++++--------------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/backupfile.c b/lib/backupfile.c index cf883fde8..fcaee9f44 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -63,12 +63,12 @@ char *malloc (); #endif #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -# define ISASCII(c) 1 +# define IN_CTYPE_DOMAIN(c) 1 #else -# define ISASCII(c) isascii(c) +# define IN_CTYPE_DOMAIN(c) isascii(c) #endif -#define ISDIGIT(c) (ISASCII ((unsigned char) (c)) \ +#define ISDIGIT(c) (IN_CTYPE_DOMAIN ((unsigned char) (c)) \ && isdigit ((unsigned char) (c))) #if defined (HAVE_UNISTD_H) diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c index ac4d7a9f5..28e397bc3 100644 --- a/lib/memcasecmp.c +++ b/lib/memcasecmp.c @@ -25,11 +25,11 @@ #include #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -#define ISASCII(c) 1 +#define IN_CTYPE_DOMAIN(c) 1 #else -#define ISASCII(c) isascii(c) +#define IN_CTYPE_DOMAIN(c) isascii(c) #endif -#define ISUPPER(c) (ISASCII (c) && isupper (c)) +#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) #if _LIBC || STDC_HEADERS # define TOLOWER(c) tolower (c) diff --git a/lib/regex.c b/lib/regex.c index 63189b280..d262e50d9 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -173,32 +173,32 @@ init_syntax_once () eliminate the && through constant folding." */ #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -#define ISASCII(c) 1 +#define IN_CTYPE_DOMAIN(c) 1 #else -#define ISASCII(c) isascii(c) +#define IN_CTYPE_DOMAIN(c) isascii(c) #endif #ifdef isblank -#define ISBLANK(c) (ISASCII (c) && isblank (c)) +#define ISBLANK(c) (IN_CTYPE_DOMAIN (c) && isblank (c)) #else #define ISBLANK(c) ((c) == ' ' || (c) == '\t') #endif #ifdef isgraph -#define ISGRAPH(c) (ISASCII (c) && isgraph (c)) +#define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isgraph (c)) #else -#define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c)) +#define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isprint (c) && !isspace (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) (IN_CTYPE_DOMAIN (c) && isprint (c)) +#define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) +#define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) +#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) +#define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c)) +#define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c)) +#define ISPUNCT(c) (IN_CTYPE_DOMAIN (c) && ispunct (c)) +#define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) +#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) +#define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c)) #ifndef NULL #define NULL (void *)0 -- 2.11.0