[RFA/RFC] Remove check of ctype.h include in safe-ctype.h?
Joel Brobecker
brobecker@adacore.com
Sat Jul 5 20:20:00 GMT 2008
> Would it work to instead #poison isalpha et al in gcc/system.h? Then
> remove the check from safe-ctype.h altogether.
I think it would work. But why putting these pragmas outside of
safe-ctype.h? How about putting them at the end of safe-ctype.h
instead?
> (Oh I think there are several system.h files (like one in libcpp,
> etc). We'd need to do the poison in all of them (but not in
> tsystem.h).
Yep, noticed that.
> I don't know if this solves the darwin problem or not. Also, this has
> the disadvantage in that users of safe-ctype.h other than GCC will not
> have the check.
Putting the #poison in safe-ctype.h would take care of that concern.
--
Joel
More information about the Gcc-patches
mailing list