Remove IN_CTYPE_DOMAIN, which was always true

The recent removal of STDC_HEADERS made IN_CTYPE_DOMAIN be defined
to 1 unconditionally.  Remove the now unnecessary definition, and
propagate its truthness to expressions where it was used.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-12-28 19:25:18 +01:00
parent 4e1afcd662
commit 45d2e6dff0
2 changed files with 5 additions and 7 deletions

View File

@ -22,7 +22,7 @@ typedef unsigned char _Bool;
# define __bool_true_false_are_defined 1
#endif
#define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
#define ISDIGIT_LOCALE(c) isdigit (c)
/* Take care of NLS matters. */
#ifdef S_SPLINT_S

View File

@ -31,12 +31,10 @@
#include <ctype.h>
#include <time.h>
#define IN_CTYPE_DOMAIN(c) 1
#define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c))
#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c))
#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
#define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
#define ISSPACE(c) isspace (c)
#define ISALPHA(c) isalpha (c)
#define ISUPPER(c) isupper (c)
#define ISDIGIT_LOCALE(c) isdigit (c)
/* ISDIGIT differs from ISDIGIT_LOCALE, as follows:
- Its arg may be any int or unsigned int; it need not be an unsigned char.