From: Richard Russon Date: Sun, 9 Dec 2018 15:07:21 +0000 (+0000) Subject: globals: upper case X-Git-Tag: 2019-10-25~452^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0b8ed9702831af9659edba711084d7e148bc1ce;p=neomutt globals: upper case --- diff --git a/compress.c b/compress.c index df198fb13..9e13bbc91 100644 --- a/compress.c +++ b/compress.c @@ -987,12 +987,12 @@ int comp_path_parent(char *buf, size_t buflen) // clang-format off /** - * struct mx_comp_ops - Compressed mailbox - Implements ::MxOps + * MxCompOps - Compressed mailbox - Implements ::MxOps * * Compress only uses open, close and check. * The message functions are delegated to mbox. */ -struct MxOps mx_comp_ops = { +struct MxOps MxCompOps = { .magic = MUTT_COMPRESSED, .name = "compressed", .ac_find = comp_ac_find, diff --git a/compress.h b/compress.h index f0e6bb71d..d5e0b9530 100644 --- a/compress.h +++ b/compress.h @@ -50,6 +50,6 @@ bool mutt_comp_can_read(const char *path); int mutt_comp_valid_command(const char *cmd); int comp_path_probe(const char *path, const struct stat *st); -extern struct MxOps mx_comp_ops; +extern struct MxOps MxCompOps; #endif /* MUTT_COMPRESS_H */ diff --git a/imap/imap.c b/imap/imap.c index 54a3cc85f..e245323bf 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -2539,9 +2539,9 @@ int imap_path_parent(char *buf, size_t buflen) // clang-format off /** - * struct mx_imap_ops - IMAP mailbox - Implements ::MxOps + * MxImapOps - IMAP mailbox - Implements ::MxOps */ -struct MxOps mx_imap_ops = { +struct MxOps MxImapOps = { .magic = MUTT_IMAP, .name = "imap", .ac_find = imap_ac_find, diff --git a/imap/imap.h b/imap/imap.h index 5f7fc5213..2693f1c1b 100644 --- a/imap/imap.h +++ b/imap/imap.h @@ -89,7 +89,7 @@ int imap_fast_trash(struct Mailbox *m, char *dest); int imap_path_probe(const char *path, const struct stat *st); int imap_path_canon(char *buf, size_t buflen); -extern struct MxOps mx_imap_ops; +extern struct MxOps MxImapOps; /* browse.c */ int imap_browse(char *path, struct BrowserState *state); diff --git a/maildir/lib.h b/maildir/lib.h index cb180a2db..57f3c5f1e 100644 --- a/maildir/lib.h +++ b/maildir/lib.h @@ -54,8 +54,8 @@ extern char *MhSeqFlagged; extern char *MhSeqReplied; extern char *MhSeqUnseen; -extern struct MxOps mx_maildir_ops; -extern struct MxOps mx_mh_ops; +extern struct MxOps MxMaildirOps; +extern struct MxOps MxMhOps; int maildir_check_empty (const char *path); void maildir_gen_flags (char *dest, size_t destlen, struct Email *e); diff --git a/maildir/maildir.c b/maildir/maildir.c index 93cd615f4..9dfd3de43 100644 --- a/maildir/maildir.c +++ b/maildir/maildir.c @@ -679,9 +679,9 @@ enum MailboxType maildir_path_probe(const char *path, const struct stat *st) // clang-format off /** - * struct mx_maildir_ops - Maildir mailbox - Implements ::MxOps + * MxMaildirOps - Maildir mailbox - Implements ::MxOps */ -struct MxOps mx_maildir_ops = { +struct MxOps MxMaildirOps = { .magic = MUTT_MAILDIR, .name = "maildir", .ac_find = maildir_ac_find, diff --git a/maildir/mh.c b/maildir/mh.c index 2974f5863..6708b87f6 100644 --- a/maildir/mh.c +++ b/maildir/mh.c @@ -798,9 +798,9 @@ enum MailboxType mh_path_probe(const char *path, const struct stat *st) // clang-format off /** - * struct mx_mh_ops - MH mailbox - Implements ::MxOps + * MxMhOps - MH mailbox - Implements ::MxOps */ -struct MxOps mx_mh_ops = { +struct MxOps MxMhOps = { .magic = MUTT_MH, .name = "mh", .ac_find = maildir_ac_find, diff --git a/mbox/mbox.c b/mbox/mbox.c index 76456ad4b..c62bf3731 100644 --- a/mbox/mbox.c +++ b/mbox/mbox.c @@ -1835,9 +1835,9 @@ static int mbox_mbox_check_stats(struct Mailbox *m, int flags) // clang-format off /** - * struct mx_mbox_ops - Mbox mailbox - Implements ::MxOps + * MxMboxOps - Mbox mailbox - Implements ::MxOps */ -struct MxOps mx_mbox_ops = { +struct MxOps MxMboxOps = { .magic = MUTT_MBOX, .name = "mbox", .ac_find = mbox_ac_find, @@ -1862,9 +1862,9 @@ struct MxOps mx_mbox_ops = { }; /** - * struct mx_mmdf_ops - MMDF mailbox - Implements ::MxOps + * MxMmdfOps - MMDF mailbox - Implements ::MxOps */ -struct MxOps mx_mmdf_ops = { +struct MxOps MxMmdfOps = { .magic = MUTT_MMDF, .name = "mmdf", .ac_find = mbox_ac_find, diff --git a/mbox/mbox.h b/mbox/mbox.h index 8ff31e8fd..ee2d85a18 100644 --- a/mbox/mbox.h +++ b/mbox/mbox.h @@ -51,8 +51,8 @@ struct MboxAccountData bool append : 1; /**< mailbox is opened in append mode */ }; -extern struct MxOps mx_mbox_ops; -extern struct MxOps mx_mmdf_ops; +extern struct MxOps MxMboxOps; +extern struct MxOps MxMmdfOps; #define MMDF_SEP "\001\001\001\001\n" diff --git a/mx.c b/mx.c index 2f958377d..4405ce2ae 100644 --- a/mx.c +++ b/mx.c @@ -99,27 +99,27 @@ char *Trash; ///< Config: Folder to put deleted emails static const struct MxOps *mx_ops[] = { /* These mailboxes can be recognised by their Url scheme */ #ifdef USE_IMAP - &mx_imap_ops, + &MxImapOps, #endif #ifdef USE_NOTMUCH - &mx_notmuch_ops, + &MxNotmuchOps, #endif #ifdef USE_POP - &mx_pop_ops, + &MxPopOps, #endif #ifdef USE_NNTP - &mx_nntp_ops, + &MxNntpOps, #endif /* Local mailboxes */ - &mx_maildir_ops, - &mx_mbox_ops, - &mx_mh_ops, - &mx_mmdf_ops, + &MxMaildirOps, + &MxMboxOps, + &MxMhOps, + &MxMmdfOps, /* If everything else fails... */ #ifdef USE_COMPRESSED - &mx_comp_ops, + &MxCompOps, #endif NULL, }; @@ -1442,23 +1442,23 @@ enum MailboxType mx_path_probe(const char *path, struct stat *st) static const struct MxOps *no_stat[] = { #ifdef USE_IMAP - &mx_imap_ops, + &MxImapOps, #endif #ifdef USE_NOTMUCH - &mx_notmuch_ops, + &MxNotmuchOps, #endif #ifdef USE_POP - &mx_pop_ops, + &MxPopOps, #endif #ifdef USE_NNTP - &mx_nntp_ops, + &MxNntpOps, #endif }; static const struct MxOps *with_stat[] = { - &mx_maildir_ops, &mx_mbox_ops, &mx_mh_ops, &mx_mmdf_ops, + &MxMaildirOps, &MxMboxOps, &MxMhOps, &MxMmdfOps, #ifdef USE_COMPRESSED - &mx_comp_ops, + &MxCompOps, #endif }; diff --git a/nntp/nntp.c b/nntp/nntp.c index 22878b625..501fcf619 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -2889,9 +2889,9 @@ int nntp_path_parent(char *buf, size_t buflen) // clang-format off /** - * struct mx_nntp_ops - NNTP mailbox - Implements ::MxOps + * MxNntpOps - NNTP mailbox - Implements ::MxOps */ -struct MxOps mx_nntp_ops = { +struct MxOps MxNntpOps = { .magic = MUTT_NNTP, .name = "nntp", .ac_find = nntp_ac_find, diff --git a/nntp/nntp.h b/nntp/nntp.h index 1051e7c71..2d6b72444 100644 --- a/nntp/nntp.h +++ b/nntp/nntp.h @@ -62,7 +62,7 @@ extern char *NewsCacheDir; extern char *Newsrc; extern struct NntpAccountData *CurrentNewsSrv; -extern struct MxOps mx_nntp_ops; +extern struct MxOps MxNntpOps; /* article number type and format */ #define anum_t uint32_t diff --git a/notmuch/mutt_notmuch.c b/notmuch/mutt_notmuch.c index ab1c64f6c..a90c0ccac 100644 --- a/notmuch/mutt_notmuch.c +++ b/notmuch/mutt_notmuch.c @@ -2545,9 +2545,9 @@ int nm_path_parent(char *buf, size_t buflen) // clang-format off /** - * struct mx_notmuch_ops - Notmuch mailbox - Implements ::MxOps + * MxNotmuchOps - Notmuch mailbox - Implements ::MxOps */ -struct MxOps mx_notmuch_ops = { +struct MxOps MxNotmuchOps = { .magic = MUTT_NOTMUCH, .name = "notmuch", .ac_find = nm_ac_find, diff --git a/notmuch/mutt_notmuch.h b/notmuch/mutt_notmuch.h index 6eb27f0a2..e1643f40a 100644 --- a/notmuch/mutt_notmuch.h +++ b/notmuch/mutt_notmuch.h @@ -54,7 +54,7 @@ extern char *NmUnreadTag; extern char *NmFlaggedTag; extern char *NmRepliedTag; -extern struct MxOps mx_notmuch_ops; +extern struct MxOps MxNotmuchOps; void nm_db_debug_check (struct Mailbox *m); int nm_description_to_path (const char *desc, char *buf, size_t buflen); diff --git a/pop/pop.c b/pop/pop.c index cc0d9c49a..91718b21b 100644 --- a/pop/pop.c +++ b/pop/pop.c @@ -1276,9 +1276,9 @@ int pop_path_parent(char *buf, size_t buflen) // clang-format off /** - * mx_pop_ops - POP mailbox - Implements ::MxOps + * MxPopOps - POP mailbox - Implements ::MxOps */ -struct MxOps mx_pop_ops = { +struct MxOps MxPopOps = { .magic = MUTT_POP, .name = "pop", .ac_find = pop_ac_find, diff --git a/pop/pop.h b/pop/pop.h index bd14753da..598e485f4 100644 --- a/pop/pop.h +++ b/pop/pop.h @@ -51,7 +51,7 @@ extern bool PopAuthTryAll; /* These Config Variables are only used in pop/pop_lib.c */ extern unsigned char PopReconnect; -extern struct MxOps mx_pop_ops; +extern struct MxOps MxPopOps; void pop_fetch_mail(void); int pop_path_probe(const char *path, const struct stat *st);