Changeset 1008
- Timestamp:
- Jan 18, 2004, 10:49:32 PM (22 years ago)
- Location:
- trunk/src/emx/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.34
to1.35
r1007 r1008 957 957 "_regexec" @986 958 958 "_regfree" @987 959 "_isblank" @988 960 "_ishexnumber" @989 961 "_isnumber" @990 962 "___istype" @991 963 "___tolower" @992 964 "___toupper" @993 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/locale/isxxx.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1007 r1008 10 10 */ 11 11 12 #define _DONT_USE_CTYPE_INLINE_ 12 13 #include "libc-alias.h" 13 14 #include <sys/locale.h> 15 #include <ctype.h> 14 16 15 int isalnum(int); 16 int isalpha(int); 17 int iscntrl(int); 18 int isdigit(int); 19 int isgraph(int); 20 int islower(int); 21 int isprint(int); 22 int ispunct(int); 23 int isspace(int); 24 int isupper(int); 25 int isxdigit(int); 26 int isascii(int); 27 int toascii(int); 28 29 int isalnum (int _c) 17 #undef isalnum 18 int isalnum(int _c) 30 19 { return __locale_ctype.cflags [_c & 0xff] & (__UPPER|__LOWER|__DIGIT); } 31 20 32 int isalpha (int _c) 21 #undef isalpha 22 int isalpha(int _c) 33 23 { return __locale_ctype.cflags [_c & 0xff] & (__UPPER|__LOWER); } 34 24 35 int iscntrl (int _c) 25 #undef iscntrl 26 int iscntrl(int _c) 36 27 { return __locale_ctype.cflags [_c & 0xff] & (__CNTRL); } 37 28 38 int isdigit (int _c) 29 #undef isdigit 30 int isdigit(int _c) 39 31 { return __locale_ctype.cflags [_c & 0xff] & (__DIGIT); } 40 32 41 int isgraph (int _c) 33 #undef isgraph 34 int isgraph(int _c) 42 35 { return __locale_ctype.cflags [_c & 0xff] & (__PUNCT|__UPPER|__LOWER|__DIGIT); } 43 36 44 int islower (int _c) 37 #undef islower 38 int islower(int _c) 45 39 { return __locale_ctype.cflags [_c & 0xff] & (__LOWER); } 46 40 47 int isprint (int _c) 41 #undef isprint 42 int isprint(int _c) 48 43 { return __locale_ctype.cflags [_c & 0xff] & (__PRINT); } 49 44 50 int ispunct (int _c) 45 #undef ispunct 46 int ispunct(int _c) 51 47 { return __locale_ctype.cflags [_c & 0xff] & (__PUNCT); } 52 48 53 int isspace (int _c) 49 #undef isspace 50 int isspace(int _c) 54 51 { return __locale_ctype.cflags [_c & 0xff] & (__SPACE); } 55 52 56 int isupper (int _c) 53 #undef isupper 54 int isupper(int _c) 57 55 { return __locale_ctype.cflags [_c & 0xff] & (__UPPER); } 58 56 59 int isxdigit (int _c) 57 #undef isxdigit 58 int isxdigit(int _c) 60 59 { return __locale_ctype.cflags [_c & 0xff] & (__XDIGIT); } 61 60 62 int toascii (int _c) 61 #undef isblank 62 int isblank(int _c) 63 { return __locale_ctype.cflags [_c & 0xff] & (__BLANK); } 64 65 #undef ishexnumber 66 int ishexnumber(int _c) 67 { return __locale_ctype.cflags [_c & 0xff] & (__XDIGIT); } 68 69 #undef isnumber 70 int isnumber(int _c) 71 { return __locale_ctype.cflags [_c & 0xff] & (__DIGIT); } 72 73 #undef toascii 74 int toascii(int _c) 63 75 { return _c & 0x7f; } 64 76 65 int isascii (int _c) 77 #undef isascii 78 int isascii(int _c) 66 79 { return (_c & 0x80) != 0; } 80 81 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/locale/locale_ctype.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1007 r1008 9 9 10 10 #define __INTERNAL_DEFS 11 #define _DONT_USE_CTYPE_INLINE_ 11 12 #include "libc-alias.h" 12 13 #include <sys/locale.h> 13 #include < string.h>14 #include <ctype.h> 14 15 15 16 struct __locale_ctype __locale_ctype = … … 88 89 }; 89 90 90 int tolower (int _c);91 int toupper (int _c);92 91 93 int tolower (int _c) 92 #undef tolower 93 int tolower(int _c) 94 { return __locale_ctype.locase [_c & 0xff]; } 95 int __tolower(int _c) 94 96 { return __locale_ctype.locase [_c & 0xff]; } 95 97 96 int toupper (int _c) 98 #undef toupper 99 int toupper(int _c) 97 100 { return __locale_ctype.upcase [_c & 0xff]; } 101 int __toupper(int _c) 102 { return __locale_ctype.upcase [_c & 0xff]; } 103 104 int __istype(int _c, unsigned _f) 105 { return __locale_ctype.cflags [_c & 0xff] & (_f); } 106 107 98 108 99 109 … … 120 130 "\n" 121 131 "#define __INTERNAL_DEFS\n" 132 "#define _DONT_USE_CTYPE_INLINE_\n" 122 133 "#include \"libc-alias.h\"\n" 123 134 "#include <sys/locale.h>\n" 124 "#include < string.h>\n"135 "#include <ctype.h>\n" 125 136 "\n" 126 137 "\n" -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.