From 9eb131e53029a648b549f507cac47f4769031073 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 30 Dec 2024 10:45:54 -0800 Subject: maint: ISDIGIT → c_isdigit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gl/lib/strnumcmp-in.h (ISDIGIT): * src/system.h (ISDIGIT): Remove. All uses replaced by c_isdigit, with appropriate inclusions of c-ctype.h. This is more regular, and is more portable to existing (but unlikely) platforms where INT_MAX == UINT_MAX. --- src/expr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/expr.c') diff --git a/src/expr.c b/src/expr.c index 3ecec0735..5a680d2ec 100644 --- a/src/expr.c +++ b/src/expr.c @@ -35,6 +35,7 @@ #include #include +#include "c-ctype.h" #include "long-options.h" #include "mcel.h" #include "strnumcmp.h" @@ -439,7 +440,7 @@ looks_like_integer (char const *cp) cp += (*cp == '-'); do - if (! ISDIGIT (*cp)) + if (! c_isdigit (*cp)) return false; while (*++cp); -- cgit v1.2.3