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 14:28:27 +0100

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



reply via email to

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