This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: Add TOUPPER/TOLOWER to system.h and clean up ctype stuff
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Patch: Add TOUPPER/TOLOWER to system.h and clean up ctype stuff
- From: Bernd Schmidt <bernds at cygnus dot co dot uk>
- Date: Mon, 13 Sep 1999 16:21:50 +0100 (BST)
- cc: gavin at cygnus dot com, egcs-patches at egcs dot cygnus dot com
On Mon, 13 Sep 1999, Kaveh R. Ghazi wrote:
> > > - else if (!ISGRAPH(token_buffer[0]))
> > > + else if (!ISGRAPH((unsigned char)token_buffer[0]))
>
> It gets rid of "subscript has type `char'" warnings (because ctype
> macros are often written as array table lookups) and in the process
> makes the code 8-bit safe.
Why don't we hide the cast in the ISGRAPH macro?
Bernd