nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Development Questions. check Programs. register.

2016-10-19 08:08:37
Hi,

I wrote:
Back to ctype.h, can we now assume POSIX

ISTM that the sbr/ctype-checked.h versions assume, wrongly, that
isdigit(EOF) and tolower(EOF) aren't valid, for example, and will index
an array with -1.  We can't increment all the indexes by one as that
will promote a char to int before the index, removing the desired
warning.  Instead, each look-up table can be a private array with a
pointer to its second element, and index that.  Sound OK?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>