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/islower.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/islower.c')
-rw-r--r-- | newlib/libc/ctype/islower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/islower.c b/newlib/libc/ctype/islower.c index cda484367..098e56c54 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_ + 1)[c] & _L); + return(__ctype_ptr__[c+1] & _L); } |