From d298aab8a280c69c26c7ed887c591e4a69d0595b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 16 Jan 2002 22:36:52 +0000 Subject: (ISDIGIT): Comment fix. --- lib/strverscmp.c | 7 +++---- lib/userspec.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/strverscmp.c b/lib/strverscmp.c index c920bd78b..5e5086050 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 3e67b1b56..e5d4c60ea 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 -- cgit v1.2.3-70-g09d2