nmh-workers
[Top][All Lists]
Advanced

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

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


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Development Questions. check Programs. register.
Date: Wed, 19 Oct 2016 13:27:01 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]