From fa914bf8ab6b2c93a02f1a915cc22c2e21d68f76 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 21 Jul 2008 21:28:34 +0000 Subject: 2008-07-21 Jeff Johnston * 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. --- newlib/libc/ctype/islower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/ctype/islower.c') 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); } -- cgit v1.2.3