]> diplodocus.org Git - nmh/commitdiff
mhlsbr.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:38:49 +0000 (13:38 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:38:49 +0000 (13:38 +0000)
Makefile.am
h/prototypes.h
uip/mhl.c
uip/mhlsbr.c
uip/mhlsbr.h [new file with mode: 0644]
uip/show.c

index e25ca9b..9db7de9 100644 (file)
@@ -457,6 +457,7 @@ noinst_HEADERS = \
     uip/annosbr.h \
     uip/forwsbr.h \
     uip/mhfree.h \
+    uip/mhlsbr.h \
     uip/mhmisc.h \
     uip/mhoutsbr.h \
     uip/mhshowsbr.h \
index aad0757..dad46e3 100644 (file)
@@ -20,7 +20,6 @@ int pidwait (pid_t, int);
 /*
  * prototypes for some routines in uip
  */
-int mhl(int, char **);
 int mhlsbr(int, char **, FILE *(*)(char *));
 int distout (char *, char *, char *);
 int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
index c3b12e5..263abe7 100644 (file)
--- a/uip/mhl.c
+++ b/uip/mhl.c
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "mhlsbr.h"
 #include "h/done.h"
 #include "h/utils.h"
 
index 8d532e3..9af4b8e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "mhlsbr.h"
 #include "sbr/m_getfld.h"
 #include "sbr/getarguments.h"
 #include "sbr/concat.h"
diff --git a/uip/mhlsbr.h b/uip/mhlsbr.h
new file mode 100644 (file)
index 0000000..d9a1f04
--- /dev/null
@@ -0,0 +1,7 @@
+/* mhlsbr.h -- main routines for nmh message lister
+ *
+ * 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. */
+
+int mhl(int, char **);
index 004a292..699b77b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "mhlsbr.h"
 #include "sbr/m_name.h"
 #include "sbr/m_getfld.h"
 #include "sbr/getarguments.h"