diff options
author | tjr <tjr@FreeBSD.org> | 2004-04-21 13:25:55 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-04-21 13:25:55 +0000 |
commit | 18cd3a48b341eecdc22286681a8b05960be81e36 (patch) | |
tree | fdd70038f2f4bf86906f07cee354df74daac3991 /include | |
parent | ff09fc7686b223a15d4ff23a6f01f379deeb646a (diff) | |
download | FreeBSD-src-18cd3a48b341eecdc22286681a8b05960be81e36.zip FreeBSD-src-18cd3a48b341eecdc22286681a8b05960be81e36.tar.gz |
Make isblank() visible in the C99 namespace.
PR: 63371
Submitted by: Stefan Farfeleder
Diffstat (limited to 'include')
-rw-r--r-- | include/_ctype.h | 10 | ||||
-rw-r--r-- | include/ctype.h | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/include/_ctype.h b/include/_ctype.h index 7d6fa79..6985410 100644 --- a/include/_ctype.h +++ b/include/_ctype.h @@ -89,9 +89,12 @@ int isascii(int); int toascii(int); #endif +#if __ISO_C_VISIBLE >= 1999 +int isblank(int); +#endif + #if __BSD_VISIBLE int digittoint(int); -int isblank(int); int ishexnumber(int); int isideogram(int); int isnumber(int); @@ -133,9 +136,12 @@ __END_DECLS #define toascii(c) ((c) & 0x7F) #endif +#if __ISO_C_VISIBLE >= 1999 +#define isblank(c) __istype((c), _CTYPE_B) +#endif + #if __BSD_VISIBLE #define digittoint(c) __maskrune((c), 0xFF) -#define isblank(c) __istype((c), _CTYPE_B) #define ishexnumber(c) __istype((c), _CTYPE_X) #define isideogram(c) __istype((c), _CTYPE_I) #define isnumber(c) __istype((c), _CTYPE_D) diff --git a/include/ctype.h b/include/ctype.h index 7d6fa79..6985410 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -89,9 +89,12 @@ int isascii(int); int toascii(int); #endif +#if __ISO_C_VISIBLE >= 1999 +int isblank(int); +#endif + #if __BSD_VISIBLE int digittoint(int); -int isblank(int); int ishexnumber(int); int isideogram(int); int isnumber(int); @@ -133,9 +136,12 @@ __END_DECLS #define toascii(c) ((c) & 0x7F) #endif +#if __ISO_C_VISIBLE >= 1999 +#define isblank(c) __istype((c), _CTYPE_B) +#endif + #if __BSD_VISIBLE #define digittoint(c) __maskrune((c), 0xFF) -#define isblank(c) __istype((c), _CTYPE_B) #define ishexnumber(c) __istype((c), _CTYPE_X) #define isideogram(c) __istype((c), _CTYPE_I) #define isnumber(c) __istype((c), _CTYPE_D) |