diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-07-22 01:28:34 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-07-22 01:28:34 +0400 |
commit | fa914bf8ab6b2c93a02f1a915cc22c2e21d68f76 (patch) | |
tree | 1a312a9fb8bdc39c8201ef2a3fba874232646f14 /newlib/libc/ctype/isalnum.c | |
parent | 0485c2ceece67d19a8c57ce774562f7e2bdef5ed (diff) |
2008-07-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
less than the old __ctype_ptr.
* libc/ctype/isalnum.c: Use __ctype_ptr__.
* libc/ctype/isalpha.c: Ditto.
* libc/ctype/iscntrl.c: Ditto.
* libc/ctype/isdigit.c: Ditto.
* libc/ctype/islower.c: Ditto.
* libc/ctype/isprint.c: Ditto.
* libc/ctype/ispunct.c: Ditto.
* libc/ctype/isspace.c: Ditto.
* libc/ctype/isupper.c: Ditto.
* libc/ctype/isxdigit.c: Ditto.
* libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
and add declaration of __ctype_ptr__. Remove older ctype table pointers
from here even though they can still work.
Diffstat (limited to 'newlib/libc/ctype/isalnum.c')
-rw-r--r-- | newlib/libc/ctype/isalnum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/isalnum.c b/newlib/libc/ctype/isalnum.c index 7e05bd1a2..3fd5f9515 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_ + 1)[c] & (_U|_L|_N)); + return(__ctype_ptr__[c+1] & (_U|_L|_N)); } |