[patch] Tweak _sch_test() to deal with c >= 256 correctly

Matt Hiller hiller@redhat.com
Thu Jun 20 21:03:00 GMT 2002

On Wed, 19 Jun 2002, DJ Delorie wrote:

> > For the uses that cpplib puts these to, it is acceptable
> > implementation-defined behavior for them all to return false for all
> > values outside the 7-bit ASCII range.
> Ok, so ISW*() should be easy to implement.  I still think it's a good
> idea to keep the ISW*() functionality separate from the IS*()
> functionality, though.  That mimics the isw*() functions in
> <wctype.h>.

Okay. For the most part, these macros will be invoked with variables
holding values in an 8-bit range; the only exceptions I'm aware of are
those that I added to get multibyte-character processing working in a
minimal sort of way. I can change these instances to use a different 

This will also localize the fix to code that'll be replaced 
when cpplib is rewritten; another good thing.



Matt Hiller
GCC Engineer, Red Hat, Inc., Sunnyvale office

More information about the Gcc-patches mailing list