This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with safe-ctype.h


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~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]