diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-27 14:17:13 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-27 14:17:13 +0000 |
commit | 28075836bdd3771e55f97ee66f4d5d53d6c0e8d9 (patch) | |
tree | f5a860cd5e57cd945da94abbb11ecd2a656a5393 | |
parent | 151b127c3a8678f491e0ec977eaa38e952b2e7bd (diff) |
- make isascii visible again
TODO: *_l() should go
-rw-r--r-- | include/ctype.h | 9 | ||||
-rw-r--r-- | libc/misc/ctype/ctype.c | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/ctype.h b/include/ctype.h index a2e457806..e45280f73 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -345,6 +345,15 @@ libc_hidden_proto(isxdigit_l) __exctype_l (isblank_l); libc_hidden_proto(isblank_l) +#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN + +/* Return nonzero iff C is in the ASCII set + (i.e., is no more than 7 bits wide). */ +extern int isascii_l (int __c) __THROW; +libc_hidden_proto(isascii_l) + +#endif + /* Return the lowercase version of C in locale L. */ extern int __tolower_l (int __c, __locale_t __l) __THROW; extern int tolower_l (int __c, __locale_t __l) __THROW; diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index 1ae2f8de5..43f95429a 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -382,14 +382,14 @@ int __XL_NPP(isascii)(int c) #else /* __UCLIBC_HAS_CTYPE_TABLES__ */ -/* libc_hidden_proto(isascii) */ int isascii(int c) { return __isascii(c); /* locale-independent */ } -libc_hidden_def(isascii) #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ +CTYPE_DEF(ascii) + #endif /**********************************************************************/ |