]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove IN_CTYPE_DOMAIN, which was always true
authorAlejandro Colomar <alx.manpages@gmail.com>
Tue, 28 Dec 2021 18:25:18 +0000 (19:25 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Wed, 29 Dec 2021 01:41:09 +0000 (02:41 +0100)
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>
lib/defines.h
libmisc/getdate.y

index 08483940282ca5f082f87a5349f6ff1629a09037..6b1bb3cb0ff2a27e03d191210d212ce14aa29a9e 100644 (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
index 9b9f48c2106345c5491efb4ccc2cd44edcebcb84..ce2235fd24760bd2bfd6d8823984f07b897fcd1a 100644 (file)
 #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.