This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: problem with safe-ctype.h
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: problem with safe-ctype.h
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 16 Dec 2000 11:09:34 -0800
- Cc: Haj dot Ten dot Brugge at net dot HCC dot nl, gcc-patches at gcc dot gnu dot org, neil at daikokuya dot demon dot co dot uk, zackw at Stanford dot EDU
- References: <200012161409.JAA09431@caip.rutgers.edu>
On Sat, Dec 16, 2000 at 09:09:50AM -0500, Kaveh R. Ghazi wrote:
> However it doesn't look like safe-ctype is prepared to receive EOF and
> return false for each IS* macro or EOF for the TO* macros.
Hmm. It is prepared to return false for EOF==-1, since
that gets mapped to 0xff, and everything outside 7-bit
ASCII returns false.
But the TO* macros don't return -1. I'm not sure how to
rectify this without multiple evaluations of the argument.
Given that Herman's patch does not appear to introduce
new misbehaviour, I'm checking it in.
r~