[PATCH,gfortran] Remove homegrown isdigit and isalpha in module.c

DJ Delorie dj@redhat.com
Mon Jan 10 20:11:00 GMT 2005


> Modules are of course compiler-generated, but it would be safer and not much
> more complicated to say
>    else if ('a' <= c <= 'z' || 'A' <= c <= 'Z')
> instead.

It would be wrong to do this.  Of the two most popular charset
encodings (ascii and ebcdic), only one (ascii) has the alphabet in
sequence like that.



More information about the Gcc-patches mailing list