From 6afc161556e0e429ebc739a373fc02f33618fdb0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 7 Dec 1992 05:28:23 +0000 Subject: [PATCH] (toarith): Change single use of isdigit to ISDIGIT. --- src/expr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/expr.c b/src/expr.c index 3dd9136322..e5f2941228 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; -- 2.47.3