nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] nmh internals: argument processing


From: David Levine
Subject: Re: [Nmh-workers] nmh internals: argument processing
Date: Tue, 08 Jan 2013 10:02:47 -0500

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



reply via email to

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