Re: [RFC 2/5] lib: remove enum names from typedefs

Subject: Re: [RFC 2/5] lib: remove enum names from typedefs

Date: Wed, 13 Oct 2021 16:28:29 +0300

To: David Bremner, Jani Nikula, notmuch@notmuchmail.org

Cc: jani@nikula.org

From: Tomi Ollila


On Wed, Oct 13 2021, David Bremner wrote:

> Jani Nikula <jani@nikula.org> writes:
>
>> Given the named enum typedef:
>>
>>     typedef enum _name_t { ... } name_t;
>>
>> Hawkmoth uses _name_t as the name for documentation. Typedef the
>> anonymous enum:
>>
>>     typedef enum { ... } name_t;
>>
>> instead to use name_t. We don't really need the enum names for
>> anything, and not all of the enum typedefs have them anyway.
>> ---
> I guess that change would be fine independent of the rest?

I had the same thought.

Tomi
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: