This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]