Create a single set of externs for mhshowsbr.c's global variables. Have
the other users of those use the new include file instead of their own
declarations.
thirdparty/jsmn/jsmn.h \
uip/mhfree.h \
uip/mhoutsbr.h \
+ uip/mhshowsbr.h \
#
##
#include <h/mhcachesbr.h>
#include <h/utils.h>
#include "mhfree.h"
+#include "mhshowsbr.h"
#define MHN_SWITCHES \
X("auto", 0, AUTOSW) \
#undef X
-/* mhshowsbr.c */
-extern char *progsw;
-extern int nolist;
-extern int nomore; /* flags for moreproc/header display */
-extern char *formsw;
-
/* mhmisc.c */
extern int npart;
extern int ntype;
#include <h/mhcachesbr.h>
#include <h/utils.h>
#include "mhfree.h"
+#include "mhshowsbr.h"
#define MHSHOW_SWITCHES \
X("check", 0, CHECKSW) \
#undef X
-/* mhshowsbr.c */
-extern char *progsw;
-extern int nomore; /* flags for moreproc/header display */
-extern char *formsw;
-extern char *folder;
-extern char *headerform;
-extern char *markerform;
-extern int headersw;
-
/* mhmisc.c */
extern int npart;
extern int ntype;
#include <h/mhparse.h>
#include <h/fmt_scan.h>
#include <h/utils.h>
+#include "mhshowsbr.h"
#include "../sbr/m_mktemp.h"
#ifdef HAVE_ICONV
# include <iconv.h>
--- /dev/null
+/* mhshowsbr.h -- display the contents of MIME messages.
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
+ */
+
+extern char *progsw;
+extern int nomore;
+extern char *formsw;
+extern char *folder;
+extern char *markerform;
+extern char *headerform;
+extern int headersw;