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/isprint.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/isprint.c')
-rw-r--r-- | newlib/libc/ctype/isprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/ctype/isprint.c b/newlib/libc/ctype/isprint.c index 2ff00f4e3..2f317a291 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_ + 1)[c] & (_P|_U|_L|_N)); + return(__ctype_ptr__[c+1] & (_P|_U|_L|_N)); } @@ -55,6 +55,6 @@ _DEFUN(isgraph,(c),int c) int _DEFUN(isprint,(c),int c) { - return((_ctype_ + 1)[c] & (_P|_U|_L|_N|_B)); + return(__ctype_ptr__[c+1] & (_P|_U|_L|_N|_B)); } |