From: Jim Meyering Date: Wed, 16 Jan 2002 22:36:52 +0000 (+0000) Subject: (ISDIGIT): Comment fix. X-Git-Tag: TEXTUTILS-2_0_20~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d298aab8a280c69c26c7ed887c591e4a69d0595b;p=thirdparty%2Fcoreutils.git (ISDIGIT): Comment fix. --- diff --git a/lib/strverscmp.c b/lib/strverscmp.c index c920bd78b4..5e50860509 100644 --- a/lib/strverscmp.c +++ b/lib/strverscmp.c @@ -41,10 +41,9 @@ - Its arg may be any int or unsigned int; it need not be an unsigned char. - It's guaranteed to evaluate its argument exactly once. - It's typically faster. - Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that - only '0' through '9' are digits. Prefer ISDIGIT to isdigit unless - it's important to use the locale's definition of `digit' even when the - host does not conform to Posix. */ + POSIX says that only '0' through '9' are digits. Prefer ISDIGIT to + ISDIGIT_LOCALE unless it's important to use the locale's definition + of `digit' even when the host does not conform to POSIX. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #undef __strverscmp diff --git a/lib/userspec.c b/lib/userspec.c index 3e67b1b563..e5d4c60eab 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -134,10 +134,9 @@ struct group *getgrgid (); - Its arg may be any int or unsigned int; it need not be an unsigned char. - It's guaranteed to evaluate its argument exactly once. - It's typically faster. - Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that - only '0' through '9' are digits. Prefer ISDIGIT to isdigit unless - it's important to use the locale's definition of `digit' even when the - host does not conform to Posix. */ + POSIX says that only '0' through '9' are digits. Prefer ISDIGIT to + ISDIGIT_LOCALE unless it's important to use the locale's definition + of `digit' even when the host does not conform to POSIX. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #ifndef strdup