nmh-workers
[Top] [All Lists]

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

2016-10-19 08:32:13
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
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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