diff options
Diffstat (limited to 'newlib/libc/ctype')
-rw-r--r-- | newlib/libc/ctype/ctype_.c | 3 | ||||
-rw-r--r-- | newlib/libc/ctype/isalnum.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isalpha.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/iscntrl.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isdigit.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/islower.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isprint.c | 4 | ||||
-rw-r--r-- | newlib/libc/ctype/ispunct.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isspace.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isupper.c | 2 | ||||
-rw-r--r-- | newlib/libc/ctype/isxdigit.c | 2 |
11 files changed, 11 insertions, 14 deletions
diff --git a/newlib/libc/ctype/ctype_.c b/newlib/libc/ctype/ctype_.c index 6fa30b207..5551dbdc9 100644 --- a/newlib/libc/ctype/ctype_.c +++ b/newlib/libc/ctype/ctype_.c @@ -86,10 +86,8 @@ static _CONST char _ctype_b[128 + 256] = { # if defined(__CYGWIN__) _CONST char __declspec(dllexport) *__ctype_ptr = _ctype_b + 128; -_CONST char __declspec(dllexport) *__ctype_ptr__ = _ctype_b + 127; # else _CONST char *__ctype_ptr = _ctype_b + 128; -_CONST char *__ctype_ptr__ = _ctype_b + 127; # endif # if defined(_HAVE_ARRAY_ALIASING) @@ -126,5 +124,4 @@ _CONST char _ctype_[1 + 256] = { }; _CONST char *__ctype_ptr = _ctype_ + 1; -_CONST char *__ctype_ptr__ = _ctype_; #endif diff --git a/newlib/libc/ctype/isalnum.c b/newlib/libc/ctype/isalnum.c index 3fd5f9515..7e05bd1a2 100644 --- a/newlib/libc/ctype/isalnum.c +++ b/newlib/libc/ctype/isalnum.c @@ -41,6 +41,6 @@ No OS subroutines are required. int _DEFUN(isalnum,(c),int c) { - return(__ctype_ptr__[c+1] & (_U|_L|_N)); + return((_ctype_ + 1)[c] & (_U|_L|_N)); } diff --git a/newlib/libc/ctype/isalpha.c b/newlib/libc/ctype/isalpha.c index a30ca9e19..35f14d396 100644 --- a/newlib/libc/ctype/isalpha.c +++ b/newlib/libc/ctype/isalpha.c @@ -39,6 +39,6 @@ No supporting OS subroutines are required. int _DEFUN(isalpha,(c),int c) { - return(__ctype_ptr__[c+1] & (_U|_L)); + return((_ctype_ + 1)[c] & (_U|_L)); } diff --git a/newlib/libc/ctype/iscntrl.c b/newlib/libc/ctype/iscntrl.c index a4fdff178..7b6da349d 100644 --- a/newlib/libc/ctype/iscntrl.c +++ b/newlib/libc/ctype/iscntrl.c @@ -42,7 +42,7 @@ No supporting OS subroutines are required. int _DEFUN(iscntrl,(c),int c) { - return(__ctype_ptr__[c+1] & _C); + return((_ctype_ + 1)[c] & _C); } diff --git a/newlib/libc/ctype/isdigit.c b/newlib/libc/ctype/isdigit.c index 18383ee45..5c21898e6 100644 --- a/newlib/libc/ctype/isdigit.c +++ b/newlib/libc/ctype/isdigit.c @@ -39,5 +39,5 @@ No supporting OS subroutines are required. int _DEFUN(isdigit,(c),int c) { - return(__ctype_ptr__[c+1] & _N); + return((_ctype_ + 1)[c] & _N); } diff --git a/newlib/libc/ctype/islower.c b/newlib/libc/ctype/islower.c index 098e56c54..cda484367 100644 --- a/newlib/libc/ctype/islower.c +++ b/newlib/libc/ctype/islower.c @@ -38,6 +38,6 @@ No supporting OS subroutines are required. int _DEFUN(islower,(c),int c) { - return(__ctype_ptr__[c+1] & _L); + return((_ctype_ + 1)[c] & _L); } diff --git a/newlib/libc/ctype/isprint.c b/newlib/libc/ctype/isprint.c index 2f317a291..2ff00f4e3 100644 --- a/newlib/libc/ctype/isprint.c +++ b/newlib/libc/ctype/isprint.c @@ -47,7 +47,7 @@ No supporting OS subroutines are required. int _DEFUN(isgraph,(c),int c) { - return(__ctype_ptr__[c+1] & (_P|_U|_L|_N)); + return((_ctype_ + 1)[c] & (_P|_U|_L|_N)); } @@ -55,6 +55,6 @@ _DEFUN(isgraph,(c),int c) int _DEFUN(isprint,(c),int c) { - return(__ctype_ptr__[c+1] & (_P|_U|_L|_N|_B)); + return((_ctype_ + 1)[c] & (_P|_U|_L|_N|_B)); } diff --git a/newlib/libc/ctype/ispunct.c b/newlib/libc/ctype/ispunct.c index 9b9c9c0bc..c5679323c 100644 --- a/newlib/libc/ctype/ispunct.c +++ b/newlib/libc/ctype/ispunct.c @@ -41,6 +41,6 @@ No supporting OS subroutines are required. int _DEFUN(ispunct,(c),int c) { - return(__ctype_ptr__[c+1] & _P); + return((_ctype_ + 1)[c] & _P); } diff --git a/newlib/libc/ctype/isspace.c b/newlib/libc/ctype/isspace.c index 36582415c..1bc0798a2 100644 --- a/newlib/libc/ctype/isspace.c +++ b/newlib/libc/ctype/isspace.c @@ -39,6 +39,6 @@ No supporting OS subroutines are required. int _DEFUN(isspace,(c),int c) { - return(__ctype_ptr__[c+1] & _S); + return((_ctype_ + 1)[c] & _S); } diff --git a/newlib/libc/ctype/isupper.c b/newlib/libc/ctype/isupper.c index d6cc6ecc4..4cf9e9a2d 100644 --- a/newlib/libc/ctype/isupper.c +++ b/newlib/libc/ctype/isupper.c @@ -38,6 +38,6 @@ No supporting OS subroutines are required. int _DEFUN(isupper,(c),int c) { - return(__ctype_ptr__[c+1] & _U); + return((_ctype_ + 1)[c] & _U); } diff --git a/newlib/libc/ctype/isxdigit.c b/newlib/libc/ctype/isxdigit.c index 9748eb4b5..f8a035f37 100644 --- a/newlib/libc/ctype/isxdigit.c +++ b/newlib/libc/ctype/isxdigit.c @@ -40,6 +40,6 @@ No supporting OS subroutines are required. int _DEFUN(isxdigit,(c),int c) { - return(__ctype_ptr__[c+1] & ((_X)|(_N))); + return((_ctype_ + 1)[c] & ((_X)|(_N))); } |