From: Richard Russon Date: Thu, 13 Jul 2017 13:58:27 +0000 (+0100) Subject: name unnamed enums X-Git-Tag: neomutt-20170714~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ca9de75e67063da363a7607c4e88a08d5cac889;p=neomutt name unnamed enums --- diff --git a/account.h b/account.h index 22aad95d1..798877830 100644 --- a/account.h +++ b/account.h @@ -23,7 +23,7 @@ struct CissUrl; /* account types */ -enum +enum AccountType { MUTT_ACCT_TYPE_NONE = 0, MUTT_ACCT_TYPE_IMAP, diff --git a/compose.c b/compose.c index 0ff44521d..74f86fc37 100644 --- a/compose.c +++ b/compose.c @@ -72,7 +72,7 @@ static const char *There_are_no_attachments = N_("There are no attachments."); } -enum +enum HeaderField { HDR_FROM = 0, HDR_TO, diff --git a/context.h b/context.h index aa1bff6e0..bb49a59c5 100644 --- a/context.h +++ b/context.h @@ -24,7 +24,7 @@ #include /* ACL Rights */ -enum +enum AclRights { MUTT_ACL_LOOKUP = 0, MUTT_ACL_READ, diff --git a/enter.c b/enter.c index 03887686a..a9a27876a 100644 --- a/enter.c +++ b/enter.c @@ -35,7 +35,7 @@ #include "protos.h" /* redraw flags for mutt_enter_string() */ -enum +enum RedrawFlags { MUTT_REDRAW_INIT = 1, /* go to end of line and redraw */ MUTT_REDRAW_LINE /* redraw entire line */ diff --git a/handler.c b/handler.c index 21bbc791c..11b8b0923 100644 --- a/handler.c +++ b/handler.c @@ -470,7 +470,7 @@ static void decode_uuencoded(struct State *s, long len, int istext, iconv_t cd) #define IndentSize (4) -enum +enum RichAttribs { RICH_PARAM = 0, RICH_BOLD, diff --git a/hdrline.c b/hdrline.c index 8cf2a4d91..fd87c65f2 100644 --- a/hdrline.c +++ b/hdrline.c @@ -49,7 +49,7 @@ #include "mutt_notmuch.h" #endif -enum +enum FlagChars { /* Indexing into the Flagchars variable ($flag_chars) */ FlagCharTagged, diff --git a/imap/imap_private.h b/imap/imap_private.h index 4189e0133..b40b2f45d 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -81,7 +81,7 @@ struct Progress; /* length of "DD-MMM-YYYY HH:MM:SS +ZZzz" (null-terminated) */ #define IMAP_DATELEN 27 -enum +enum ImapFlags { IMAP_FATAL = 1, IMAP_BYE diff --git a/keymap.h b/keymap.h index 81cf5f722..abefd6d91 100644 --- a/keymap.h +++ b/keymap.h @@ -50,7 +50,7 @@ void km_init(void); void km_error_key(int menu); void mutt_what_key(void); -enum +enum MenuTypes { MENU_ALIAS, MENU_ATTACH, diff --git a/mailbox.h b/mailbox.h index 910cfee24..f8810c620 100644 --- a/mailbox.h +++ b/mailbox.h @@ -42,7 +42,7 @@ struct Context; #define MUTT_SET_DRAFT (1 << 1) /* set the message draft flag */ /* return values from mx_check_mailbox() */ -enum +enum MxCheckReturns { MUTT_NEW_MAIL = 1, /* new mail received in mailbox */ MUTT_LOCKED, /* couldn't lock the mailbox */ diff --git a/mime.h b/mime.h index 1be76b55f..785abf92d 100644 --- a/mime.h +++ b/mime.h @@ -19,7 +19,7 @@ #define _MUTT_MIME_H 1 /* Content-Type */ -enum +enum ContentType { TYPEOTHER, TYPEAUDIO, diff --git a/mutt.h b/mutt.h index 04840ae7c..a4861b07d 100644 --- a/mutt.h +++ b/mutt.h @@ -123,7 +123,7 @@ struct State; #define MUTT_THREAD_NEXT_UNREAD (1 << 4) #define MUTT_THREAD_FLAGGED (1 << 5) -enum +enum MuttMisc { /* modes for mutt_view_attachment() */ MUTT_REGULAR = 1, diff --git a/mutt_curses.h b/mutt_curses.h index 57ff291ae..cf35b1bfd 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -121,7 +121,7 @@ void mutt_need_hard_redraw(void); * Support for color */ -enum +enum ColorId { MT_COLOR_HDEFAULT = 0, MT_COLOR_QUOTED, diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 5a0eda1dd..60dba5d60 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -75,11 +75,11 @@ LIBNOTMUCH_MICRO_VERSION >= (_micro))) /** - * enum anonymous - Query Types + * enum NmQueryType - Query Types * * Read whole-thread or matching messages only? */ -enum +enum NmQueryType { NM_QUERY_TYPE_MESGS = 1, /**< Default: Messages only */ NM_QUERY_TYPE_THREADS /**< Whole threads */ diff --git a/mx.h b/mx.h index d6ddf3aed..8990f1b76 100644 --- a/mx.h +++ b/mx.h @@ -60,7 +60,7 @@ struct MxOps }; /* supported mailbox formats */ -enum +enum MailboxFormat { MUTT_MBOX = 1, MUTT_MMDF, diff --git a/ncrypt/crypt_gpgme.c b/ncrypt/crypt_gpgme.c index a6a5e8f63..c73bac045 100644 --- a/ncrypt/crypt_gpgme.c +++ b/ncrypt/crypt_gpgme.c @@ -3319,7 +3319,7 @@ static unsigned int key_check_cap(gpgme_key_t key, enum KeyCap cap) return ret; } -enum +enum KeyInfo { KIP_NAME = 0, KIP_AKA, diff --git a/nntp.h b/nntp.h index 9627ea2cf..4b15ef7d9 100644 --- a/nntp.h +++ b/nntp.h @@ -46,7 +46,7 @@ struct Context; #define anum_t uint32_t #define ANUM "%u" -enum +enum NntpStatus { NNTP_NONE = 0, NNTP_OK, diff --git a/options.h b/options.h index 2874306ed..0de0c6a13 100644 --- a/options.h +++ b/options.h @@ -19,7 +19,7 @@ #define _MUTT_OPTIONS_H_ 1 /* boolean vars */ -enum +enum GlobalBool { OPTALLOW8BIT, OPTALLOWANSI, diff --git a/pattern.c b/pattern.c index 6fc8a7490..3d4f0b405 100644 --- a/pattern.c +++ b/pattern.c @@ -64,7 +64,7 @@ #endif /* Error codes for eat_range_by_regexp */ -enum +enum EatRangeError { RANGE_E_OK, RANGE_E_SYNTAX, diff --git a/pop.h b/pop.h index 5d138406e..3a4d50c39 100644 --- a/pop.h +++ b/pop.h @@ -35,7 +35,7 @@ struct Progress; /* maximal length of the server response (RFC1939) */ #define POP_CMD_RESPONSE 512 -enum +enum PopStatus { /* Status */ POP_NONE = 0, diff --git a/rfc822.h b/rfc822.h index b648b836c..60074b1a5 100644 --- a/rfc822.h +++ b/rfc822.h @@ -25,7 +25,7 @@ #include "lib.h" /* possible values for RFC822Error */ -enum +enum AddressError { ERR_MEMORY = 1, ERR_MISMATCH_PAREN, diff --git a/smtp.c b/smtp.c index cee0257ca..bb7198776 100644 --- a/smtp.c +++ b/smtp.c @@ -63,7 +63,7 @@ #define SMTP_AUTH_UNAVAIL 1 #define SMTP_AUTH_FAIL -1 -enum +enum SmtpCapability { STARTTLS, AUTH,