Patch to use more safe-ctype macros
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Sun Oct 21 08:19:00 GMT 2001
> From: Toon Moene <toon@moene.indiv.nluug.nl>
>
> "Kaveh R. Ghazi" wrote:
>
> > This patch makes gcc use more of the safe-ctype macros in lieu of
> > explicit character range tests.
>
> > Okay to install?
>
> > f:
> > * bad.c (ffebad_finish): Use safe-ctype macros and/or fold extra
> > calls into fewer ones.
> > * implic.c (ffeimplic_lookup_): Likewise.
> > * intdoc.c (dumpimp): Likewise.
> > * intrin.c (ffeintrin_init_0): Likewise.
> > * lex.c (ffelex_backslash_, ffelex_cfebackslash_, ffelex_hash_):
> > Likewise.
> > * lex.h (ffelex_is_firstnamechar): Likewise.
> > * target.c (ffetarget_integerhex): Likewise.
>
> OK - thanks !
Thank you.
BTW, would you please take a look at intrin.c:ffeintrin_init_0 ?
There are two places where it does exclusive range checks but uses:
(foo < '1' || foo > '9')
I.e. it checks '1' as a boundary instead of '0'. Is the range
intentional or a typo?
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc-patches
mailing list