diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2024-12-30 10:45:54 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-12-30 10:55:23 -0800 |
| commit | 9eb131e53029a648b549f507cac47f4769031073 (patch) | |
| tree | 6598314d9b702383eef608014e7c4c773953cec8 /src/expr.c | |
| parent | tests: improve the chmod/symlinks.sh test (diff) | |
| download | coreutils-9eb131e53029a648b549f507cac47f4769031073.tar.gz coreutils-9eb131e53029a648b549f507cac47f4769031073.zip | |
maint: ISDIGIT → c_isdigit
* 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.
Diffstat (limited to 'src/expr.c')
| -rw-r--r-- | src/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gmp.h> #include <regex.h> +#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); |
