diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2012-03-11 20:21:27 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-15 11:33:00 -0700 |
commit | 87259a8dd521fafff32734c5d844b7dd21859eb0 (patch) | |
tree | 4526b73276b5a9ca72f56f72560ce9ca1094814a | |
parent | e9e4e24d201000a8a307109c7d0ae6608c00f7c4 (diff) | |
download | klibc-87259a8dd521fafff32734c5d844b7dd21859eb0.tar.gz |
[klibc] Fix missing prototypes for ctype inline functions
Add missing prototypes.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | usr/include/ctype.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/include/ctype.h b/usr/include/ctype.h index 4fd162bbc001ce..14a2f2d34a0e89 100644 --- a/usr/include/ctype.h +++ b/usr/include/ctype.h @@ -47,6 +47,20 @@ __extern int tolower(int); extern const unsigned char __ctypes[]; +__must_inline int __ctype_isalnum(int); +__must_inline int __ctype_isalpha(int); +__must_inline int __ctype_isascii(int); +__must_inline int __ctype_isblank(int); +__must_inline int __ctype_iscntrl(int); +__must_inline int __ctype_isdigit(int); +__must_inline int __ctype_isgraph(int); +__must_inline int __ctype_islower(int); +__must_inline int __ctype_isprint(int); +__must_inline int __ctype_ispunct(int); +__must_inline int __ctype_isspace(int); +__must_inline int __ctype_isupper(int); +__must_inline int __ctype_isxdigit(int); + __must_inline int __ctype_isalnum(int __c) { return __ctypes[__c + 1] & @@ -118,6 +132,9 @@ __must_inline int __ctype_isxdigit(int __c) #define _toupper(__c) ((__c) & ~32) #define _tolower(__c) ((__c) | 32) +__must_inline int __ctype_toupper(int); +__must_inline int __ctype_tolower(int); + __must_inline int __ctype_toupper(int __c) { return __ctype_islower(__c) ? _toupper(__c) : __c; |