From 6afc161556e0e429ebc739a373fc02f33618fdb0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 7 Dec 1992 05:28:23 +0000 Subject: (toarith): Change single use of isdigit to ISDIGIT. --- src/expr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/expr.c') diff --git a/src/expr.c b/src/expr.c index 3dd913632..e5f294122 100644 --- a/src/expr.c +++ b/src/expr.c @@ -34,6 +34,12 @@ #include #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; -- cgit v1.2.3-54-g00ecf