* libc/ctype/isalnum.c: Correct domain of definition to SUSv4 wording.

* libc/ctype/isalpha.c: Ditto.
	* libc/ctype/isblank.c: Ditto.
	* libc/ctype/iscntrl.c: Ditto.
	* libc/ctype/isdigit.c: Ditto.
	* libc/ctype/islower.c: Ditto.
	* libc/ctype/isprint.c: Ditto.
	* libc/ctype/ispunct.c: Ditto.
	* libc/ctype/isxdigit.c: Ditto.
This commit is contained in:
Corinna Vinschen 2013-05-23 14:46:51 +00:00
parent 6d383d0fde
commit cc88e009ed
10 changed files with 29 additions and 14 deletions

View File

@ -1,3 +1,15 @@
2013-05-22 Corinna Vinschen <vinschen@redhat.com>
* libc/ctype/isalnum.c: Correct domain of definition to SUSv4 wording.
* libc/ctype/isalpha.c: Ditto.
* libc/ctype/isblank.c: Ditto.
* libc/ctype/iscntrl.c: Ditto.
* libc/ctype/isdigit.c: Ditto.
* libc/ctype/islower.c: Ditto.
* libc/ctype/isprint.c: Ditto.
* libc/ctype/ispunct.c: Ditto.
* libc/ctype/isxdigit.c: Ditto.
2013-05-22 Corinna Vinschen <vinschen@redhat.com> 2013-05-22 Corinna Vinschen <vinschen@redhat.com>
* libc/include/sys/cdefs.h (_Static_assert): Accommodate gcc >= 4.6. * libc/include/sys/cdefs.h (_Static_assert): Accommodate gcc >= 4.6.

View File

@ -18,7 +18,7 @@ DESCRIPTION
<<isalnum>> is a macro which classifies ASCII integer values by table <<isalnum>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for alphabetic or lookup. It is a predicate returning non-zero for alphabetic or
numeric ASCII characters, and <<0>> for other arguments. It is defined numeric ASCII characters, and <<0>> for other arguments. It is defined
for all integer values. only if <[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isalnum>>'. undefining the macro using `<<#undef isalnum>>'.

View File

@ -16,8 +16,8 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<isalpha>> is a macro which classifies ASCII integer values by table <<isalpha>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero when <[c]> represents an lookup. It is a predicate returning non-zero when <[c]> represents an
alphabetic ASCII character, and 0 otherwise. It is defined only when alphabetic ASCII character, and 0 otherwise. It is defined only if
<<isascii>>(<[c]>) is true or <[c]> is EOF. <[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isalpha>>'. undefining the macro using `<<#undef isalpha>>'.

View File

@ -17,7 +17,8 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<isblank>> is a function which classifies ASCII integer values by table <<isblank>> is a function which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for blank characters, and 0 lookup. It is a predicate returning non-zero for blank characters, and 0
for other characters. for other characters. It is defined only if <[c]> is representable as an
unsigned char or if <[c]> is EOF.
RETURNS RETURNS
<<isblank>> returns non-zero if <[c]> is a blank character. <<isblank>> returns non-zero if <[c]> is a blank character.

View File

@ -17,8 +17,8 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<iscntrl>> is a macro which classifies ASCII integer values by table <<iscntrl>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for control characters, and 0 lookup. It is a predicate returning non-zero for control characters, and 0
for other characters. It is defined only when <<isascii>>(<[c]>) is for other characters. It is defined only if <[c]> is representable as an
true or <[c]> is EOF. unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef iscntrl>>'. undefining the macro using `<<#undef iscntrl>>'.

View File

@ -16,8 +16,8 @@ int isdigit(<[c]>);
DESCRIPTION DESCRIPTION
<<isdigit>> is a macro which classifies ASCII integer values by table <<isdigit>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for decimal digits, and 0 for lookup. It is a predicate returning non-zero for decimal digits, and 0 for
other characters. It is defined only when <<isascii>>(<[c]>) is true other characters. It is defined only if <[c]> is representable as an
or <[c]> is EOF. unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isdigit>>'. undefining the macro using `<<#undef isdigit>>'.

View File

@ -18,7 +18,8 @@ DESCRIPTION
<<islower>> is a macro which classifies ASCII integer values by table <<islower>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for minuscules lookup. It is a predicate returning non-zero for minuscules
(lowercase alphabetic characters), and 0 for other characters. (lowercase alphabetic characters), and 0 for other characters.
It is defined only when <<isascii>>(<[c]>) is true or <[c]> is EOF. It is defined only if <[c]> is representable as an unsigned char or if
<[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef islower>>'. undefining the macro using `<<#undef islower>>'.

View File

@ -23,7 +23,8 @@ DESCRIPTION
<<isprint>> is a macro which classifies ASCII integer values by table <<isprint>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for printable lookup. It is a predicate returning non-zero for printable
characters, and 0 for other character arguments. characters, and 0 for other character arguments.
It is defined only when <<isascii>>(<[c]>) is true or <[c]> is EOF. It is defined only if <[c]> is representable as an unsigned char or if
<[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining either macro using `<<#undef isprint>>' or `<<#undef isgraph>>'. undefining either macro using `<<#undef isprint>>' or `<<#undef isgraph>>'.

View File

@ -17,8 +17,8 @@ int ispunct(<[c]>);
DESCRIPTION DESCRIPTION
<<ispunct>> is a macro which classifies ASCII integer values by table <<ispunct>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for printable lookup. It is a predicate returning non-zero for printable
punctuation characters, and 0 for other characters. It is defined punctuation characters, and 0 for other characters. It is defined only
only when <<isascii>>(<[c]>) is true or <[c]> is EOF. if <[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef ispunct>>'. undefining the macro using `<<#undef ispunct>>'.

View File

@ -17,8 +17,8 @@ int isxdigit(int <[c]>);
DESCRIPTION DESCRIPTION
<<isxdigit>> is a macro which classifies ASCII integer values by table <<isxdigit>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for hexadecimal digits, lookup. It is a predicate returning non-zero for hexadecimal digits,
and <<0>> for other characters. It is defined only when and <<0>> for other characters. It is defined only if <[c]> is
<<isascii>>(<[c]>) is true or <[c]> is EOF. representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isxdigit>>'. undefining the macro using `<<#undef isxdigit>>'.