]> git.notmuchmail.org Git - notmuch/commit
lib: remove enum names from typedefs
authorJani Nikula <jani@nikula.org>
Wed, 13 Oct 2021 14:02:16 +0000 (17:02 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 23 Oct 2021 11:38:53 +0000 (08:38 -0300)
commit6987286a5b562709c1de583db66673c202fd926c
tree2a9474fa08549a106b28d06112c2aaf9384f9144
parente0834e376a1078fc3a79978cf36a94785cdb2d30
lib: remove enum names from typedefs

There are some enum typedefs with the enum name:

    typedef enum _name_t { ... } name_t;

We don't need or use the enum names _name_t for anything, and not all
of the enum typedefs have them. We have the typedefs specifically to
use the typedef name.

Use the anonymous enum in the typedefs:

    typedef enum { ... } name_t;
lib/database-private.h
lib/notmuch-private.h
lib/notmuch.h