Index: ChangeLog =================================================================== RCS file: /cvs/src/src/newlib/ChangeLog,v retrieving revision 1.1203 diff -u -p -r1.1203 ChangeLog --- ChangeLog 6 Oct 2008 19:47:06 -0000 1.1203 +++ ChangeLog 14 Oct 2008 16:27:45 -0000 @@ -1,3 +1,9 @@ +2008-10-14 Craig Howland + + * libc/include/ctype.h (isblank): isblank is ANSI standard. + * libc/ctype/isblank.c (isblank comments): ditto. isblank does not + have a macro version (as was claimed in the description). + 2008-10-06 Eric Blake * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction Index: libc/include/ctype.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/ctype.h,v retrieving revision 1.11 diff -u -p -r1.11 ctype.h --- libc/include/ctype.h 24 Jul 2008 17:55:26 -0000 1.11 +++ libc/include/ctype.h 14 Oct 2008 16:27:45 -0000 @@ -7,6 +7,7 @@ _BEGIN_STD_C int _EXFUN(isalnum, (int __c)); int _EXFUN(isalpha, (int __c)); +int _EXFUN(isblank, (int __c)); int _EXFUN(iscntrl, (int __c)); int _EXFUN(isdigit, (int __c)); int _EXFUN(isgraph, (int __c)); @@ -20,7 +21,6 @@ int _EXFUN(tolower, (int __c)); int _EXFUN(toupper, (int __c)); #ifndef __STRICT_ANSI__ -int _EXFUN(isblank, (int __c)); int _EXFUN(isascii, (int __c)); int _EXFUN(toascii, (int __c)); int _EXFUN(_tolower, (int __c)); Index: libc/ctype/isblank.c =================================================================== RCS file: /cvs/src/src/newlib/libc/ctype/isblank.c,v retrieving revision 1.1 diff -u -p -r1.1 isblank.c --- libc/ctype/isblank.c 18 Jun 2002 18:49:10 -0000 1.1 +++ libc/ctype/isblank.c 14 Oct 2008 16:27:45 -0000 @@ -15,16 +15,17 @@ TRAD_SYNOPSIS int isblank(<[c]>); DESCRIPTION -<> is a macro which classifies ASCII integer values by table +<> is a function which classifies ASCII integer values by table lookup. It is a predicate returning non-zero for blank characters, and 0 for other characters. -You can use a compiled subroutine instead of the macro definition by -undefining the macro using `<<#undef isblank>>'. - RETURNS <> returns non-zero if <[c]> is a blank character. +PORTABILITY +<> is ANSI C. + +No supporting OS subroutines are required. */ #include <_ansi.h>