Changeset 495
- Timestamp:
- Aug 1, 2003, 1:01:07 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/ctype.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r494 r495 18 18 19 19 static inline int isalnum (int _c) 20 { return __locale_ctype.cflags [ _c & 0xff] & (__UPPER|__LOWER|__DIGIT); }20 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__UPPER|__LOWER|__DIGIT); } 21 21 22 22 static inline int isalpha (int _c) 23 { return __locale_ctype.cflags [ _c & 0xff] & (__UPPER|__LOWER); }23 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__UPPER|__LOWER); } 24 24 25 25 static inline int iscntrl (int _c) 26 { return __locale_ctype.cflags [ _c & 0xff] & (__CNTRL); }26 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__CNTRL); } 27 27 28 28 static inline int isdigit (int _c) 29 { return __locale_ctype.cflags [ _c & 0xff] & (__DIGIT); }29 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__DIGIT); } 30 30 31 31 static inline int isgraph (int _c) 32 { return __locale_ctype.cflags [ _c & 0xff] & (__PUNCT|__UPPER|__LOWER|__DIGIT); }32 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__PUNCT|__UPPER|__LOWER|__DIGIT); } 33 33 34 34 static inline int islower (int _c) 35 { return __locale_ctype.cflags [ _c & 0xff] & (__LOWER); }35 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__LOWER); } 36 36 37 37 static inline int isprint (int _c) 38 { return __locale_ctype.cflags [ _c & 0xff] & (__PRINT); }38 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__PRINT); } 39 39 40 40 static inline int ispunct (int _c) 41 { return __locale_ctype.cflags [ _c & 0xff] & (__PUNCT); }41 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__PUNCT); } 42 42 43 43 static inline int isspace (int _c) 44 { return __locale_ctype.cflags [ _c & 0xff] & (__SPACE); }44 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__SPACE); } 45 45 46 46 static inline int isupper (int _c) 47 { return __locale_ctype.cflags [ _c & 0xff] & (__UPPER); }47 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__UPPER); } 48 48 49 49 static inline int isxdigit (int _c) 50 { return __locale_ctype.cflags [ _c & 0xff] & (__XDIGIT); }50 { return __locale_ctype.cflags [(unsigned char)_c & 0xff] & (__XDIGIT); } 51 51 52 52 static inline int toupper (int _c) 53 { return __locale_ctype.upcase [ _c & 0xff]; }53 { return __locale_ctype.upcase [(unsigned char)_c & 0xff]; } 54 54 55 55 static inline int tolower (int _c) 56 { return __locale_ctype.locase [ _c & 0xff]; }56 { return __locale_ctype.locase [(unsigned char)_c & 0xff]; } 57 57 58 58 #if !defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE) 59 59 60 60 static inline int isascii (int _c) 61 { return (unsigned )_c <= 0x7f; }61 { return (unsigned char)_c <= 0x7f; } 62 62 63 63 static inline int toascii (int _c) 64 { return _c & 0x7f; }64 { return (unsigned char)_c & 0x7f; } 65 65 66 66 #endif -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.