Sorry, me again.

> Instead, each look-up table can be a private array with a pointer to
> its second element, and index that.  Sound OK?

Thinking about this a bit more.  The "generate C at compile time" can be
dropped by

    #ifndef NDEBUG
    #if EOF != -1
    #error "Please report this to nmh's authors."
    #endif

    extern int ctype_identity[257]; /* [n] = n-1 */
    #define isupper(c) ((isupper)((ctype_identity + 1)[c]))
    ...
    #endif

The single ctype_identity[] can replace one per shadow macro, and we
punt to the stdlib's function for the work.

+1?

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

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to