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 17:04:18 +0300

To: Tomi Ollila, David Bremner, notmuch@notmuchmail.org

Cc:

From: Jani Nikula


On Wed, 13 Oct 2021, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> 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.

Added more typedef enums outside of notmuch.h, removed hawkmoth
references, and resent separately.

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

Thread: