[klibc] [PATCH 2/3] fix missing prototypes for ctype inline functions

Thorsten Glaser tg at mirbsd.org
Sun Mar 11 13:21:27 PDT 2012


Signed-off-by: Thorsten Glaser <tg at mirbsd.org>
---
 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 4fd162b..14a2f2d 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;
-- 
1.7.9.1



More information about the klibc mailing list