From: Damien Riegel Date: Tue, 22 Aug 2017 16:24:27 +0000 (-0400) Subject: move HelpStrings to help.c X-Git-Tag: neomutt-20170907~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e46b4540334dfcc1151ab878ba778d01b45a37f;p=neomutt move HelpStrings to help.c HelpStrings was only defined when included in help.c (with the `#ifdef HELP_C` guard), and it's only used there so move it to where it belongs and make it static. --- diff --git a/help.c b/help.c index 7c759c123..bae2aa5a2 100644 --- a/help.c +++ b/help.c @@ -20,8 +20,6 @@ * this program. If not, see . */ -#define HELP_C - #include "config.h" #include #include @@ -41,6 +39,13 @@ #include "pager.h" #include "protos.h" +static const char *HelpStrings[] = { +#define DEFINE_HELP_MESSAGE(opcode, help_string) help_string, + OPS(DEFINE_HELP_MESSAGE) +#undef DEFINE_HELP_MESSAGE + NULL, +}; + static const struct Binding *help_lookup_function(int op, int menu) { int i; diff --git a/opcodes.h b/opcodes.h index eb4e28259..7985a3d8c 100644 --- a/opcodes.h +++ b/opcodes.h @@ -284,13 +284,4 @@ enum mutt_ops { OP_MAX, }; -#ifdef HELP_C -const char *HelpStrings[] = { -#define DEFINE_HELP_MESSAGE(opcode, help_string) help_string, - OPS(DEFINE_HELP_MESSAGE) -#undef DEFINE_HELP_MESSAGE - NULL, -}; -#endif - #endif /* _MUTT_OPCODES_H */