]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(isnumber): Define ISDIGIT and use it instead of isdigit.
authorJim Meyering <jim@meyering.net>
Tue, 8 Dec 1992 02:12:49 +0000 (02:12 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Dec 1992 02:12:49 +0000 (02:12 +0000)
src/install.c

index c4d8c9de4b1c8462ed28e91d6808f9f2f0598414..f0bbbbd92896b48b1e7ba16feb63cdd9ba1c2ec0 100644 (file)
 #include "system.h"
 #include "modechange.h"
 
+#ifndef isascii
+#define isascii(c) 1
+#endif
+
+#define ISDIGIT(c) (isascii (c) && isdigit (c))
+
 #ifdef _POSIX_VERSION
 #include <sys/wait.h>
 #else
@@ -476,7 +482,7 @@ isnumber (str)
   if (*str == 0)
     return 0;
   for (; *str; str++)
-    if (!isdigit (*str))
+    if (!ISDIGIT (*str))
       return 0;
   return 1;
 }