]> diplodocus.org Git - nmh/commitdiff
showfile.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 00:05:54 +0000 (00:05 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:34 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/showfile.c
sbr/showfile.h [new file with mode: 0644]
uip/comp.c
uip/dist.c
uip/forw.c
uip/repl.c
uip/send.c
uip/whatnowsbr.c

index 5dc26b9..065bae3 100644 (file)
@@ -429,6 +429,7 @@ noinst_HEADERS = \
     sbr/seq_list.h \
     sbr/seq_nameok.h \
     sbr/seq_print.h \
+    sbr/showfile.h \
     sbr/smatch.h \
     sbr/snprintb.h \
     sbr/ssequal.h \
index 44670f4..a70fa62 100644 (file)
@@ -89,7 +89,6 @@ void seq_save (struct msgs *);
 void seq_setcur (struct msgs *, int);
 void seq_setprev (struct msgs *);
 void seq_setunseen (struct msgs *, int);
-int showfile (char **, char *);
 
 /*
  * prototypes for some routines in uip
index 4a06fd0..7daadae 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "showfile.h"
 #include "r1bindex.h"
 #include "context_save.h"
 #include "arglist.h"
diff --git a/sbr/showfile.h b/sbr/showfile.h
new file mode 100644 (file)
index 0000000..8ff12b8
--- /dev/null
@@ -0,0 +1,7 @@
+/* showfile.h -- invoke the `lproc' command
+ *
+ * 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 showfile(char **, char *);
index 29ca194..6d088d8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/refile.h"
 #include "sbr/cpydata.h"
index b8e2fc5..44d7136 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/refile.h"
 #include "sbr/cpydata.h"
index cd68d0b..04abd31 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/refile.h"
 #include "sbr/cpydata.h"
index 018d0d9..c73b846 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/refile.h"
 #include "sbr/m_draft.h"
index 7962809..e6a74f3 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/closefds.h"
 #include "sbr/cpydata.h"
index 2aad78c..ca9365d 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/r1bindex.h"
 #include "sbr/refile.h"