]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(toarith): Change single use of isdigit to ISDIGIT.
authorJim Meyering <jim@meyering.net>
Mon, 7 Dec 1992 05:28:23 +0000 (05:28 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 7 Dec 1992 05:28:23 +0000 (05:28 +0000)
src/expr.c

index 3dd91363222f5b89f14d31ad460c2f9d2fd50189..e5f29412285bb39a681cb658d46321ccc5480312 100644 (file)
 #include <regex.h>
 #include "system.h"
 
+#ifndef isascii
+#define isascii(c) 1
+#endif
+
+#define ISDIGIT(c) (isascii (c) && isdigit (c))
+
 #if !__STDC__
 #define const
 #endif
@@ -236,7 +242,7 @@ toarith (v)
        cp++;
       for (; *cp; cp++)
        {
-         if (isdigit (*cp))
+         if (ISDIGIT (*cp))
            i = i * 10 + *cp - '0';
          else
            return 0;