tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: _ctype_ table bitwidth change

On Fri, Mar 25, 2011 at 08:25:58AM +0900, Takehiko NOZAKI wrote:
> your idea is:
>     #define isalpha(c) (_ctype_[c] & _ALPHA)
>     #define isblank(c) (_ctype_extra_bit_[c] & _BLANK)


#define isblank(c) (_ctype_[(c)+257] & _BLANK)

Might be better.

A 16bit array would need to be defined as (say) _ctype16_[257]

Interestingly, when I trawled through the NetBSD source tree
I found no places where isxxx(EOF) might have been called.


David Laight:

Home | Main Index | Thread Index | Old Index