From: Jim Meyering Date: Tue, 8 Dec 1992 02:13:58 +0000 (+0000) Subject: Define ISLOWER and ISUPPER independent of STDC_HEADERS. X-Git-Tag: ISDIGIT-bug-fix~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b55706236dfb8b5bbe845869adf7aa8eadadc3d8;p=thirdparty%2Fcoreutils.git Define ISLOWER and ISUPPER independent of STDC_HEADERS. Define ISDIGIT and use it instead of isdigit. --- diff --git a/src/dd.c b/src/dd.c index 01f9009fd2..ba8d15e571 100644 --- a/src/dd.c +++ b/src/dd.c @@ -55,13 +55,15 @@ #include #include -#ifdef STDC_HEADERS -#define ISLOWER islower -#define ISUPPER isupper -#else -#define ISLOWER(c) (isascii ((c)) && islower ((c))) -#define ISUPPER(c) (isascii ((c)) && isupper ((c))) + +#ifndef isascii +#define isascii(c) 1 #endif + +#define ISLOWER(c) (isascii (c) && islower (c)) +#define ISUPPER(c) (isascii (c) && isupper (c)) +#define ISDIGIT(c) (isascii (c) && isdigit (c)) + #include #include #include "system.h" @@ -839,7 +841,7 @@ parse_integer (str) register int temp; register char *p = str; - while (isdigit (*p)) + while (ISDIGIT (*p)) { n = n * 10 + *p - '0'; p++;