diff options
Diffstat (limited to 'mdk-stage1/dietlibc/include/ctype.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/ctype.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/mdk-stage1/dietlibc/include/ctype.h b/mdk-stage1/dietlibc/include/ctype.h index c8f4e5a34..9322e8c7b 100644 --- a/mdk-stage1/dietlibc/include/ctype.h +++ b/mdk-stage1/dietlibc/include/ctype.h @@ -3,11 +3,26 @@ #include <sys/cdefs.h> -extern int isascii (int c) __THROW; -extern int isblank (int c) __THROW; -extern int isalnum (int c) __THROW; -extern int isalpha (int c) __THROW; -extern int isdigit (int c) __THROW; -extern int isspace (int c) __THROW; +extern int isascii (int c) __THROW __attribute__ ((__const__)); +extern int isblank (int c) __THROW __attribute__ ((__const__)); +extern int isalnum (int c) __THROW __attribute__ ((__const__)); +extern int isalpha (int c) __THROW __attribute__ ((__const__)); +extern int isdigit (int c) __THROW __attribute__ ((__const__)); +extern int isspace (int c) __THROW __attribute__ ((__const__)); + +extern int isupper (int c) __THROW __attribute__ ((__const__)); +extern int islower (int c) __THROW __attribute__ ((__const__)); + +extern int tolower(int c) __THROW __attribute__ ((__const__)); +extern int toupper(int c) __THROW __attribute__ ((__const__)); + +extern int isprint(int c) __THROW __attribute__ ((__const__)); +extern int ispunct(int c) __THROW __attribute__ ((__const__)); +extern int iscntrl(int c) __THROW __attribute__ ((__const__)); + +/* fscking GNU extensions! */ +extern int isxdigit(int c) __THROW __attribute__ ((__const__)); + +extern int isgraph(int c) __THROW __attribute__ ((__const__)); #endif |