
July 5th, 2008, 01:01 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Remove check of ctype.h include in safe-ctype.h?
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?
( 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
|