From dcded75afccc14f6efdd9e96c6450b65ae46634b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Dec 1992 02:12:49 +0000 Subject: (isnumber): Define ISDIGIT and use it instead of isdigit. --- src/install.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/install.c') diff --git a/src/install.c b/src/install.c index c4d8c9de4..f0bbbbd92 100644 --- a/src/install.c +++ b/src/install.c @@ -61,6 +61,12 @@ #include "system.h" #include "modechange.h" +#ifndef isascii +#define isascii(c) 1 +#endif + +#define ISDIGIT(c) (isascii (c) && isdigit (c)) + #ifdef _POSIX_VERSION #include #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; } -- cgit v1.2.3-70-g09d2