Ken wrote:
enum { AUDSW, NAUDSW, CHGSW, NCHGSW, };
static struct swit switches[] = {
{ "audit audit-file", 0, AUDSW },
{ "noaudit", 0, NAUDSW},
{ "changecur", 0, CHGSW },
{ "nochangecur", 0, NCHGSW },
Beautiful.
And I think it is helpful to include the enum value in the
swit struct. These things get moved around, copied,
commented, and so on.
David
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers