From 1e03ea3338cc5ccd9ddf4feaaacfeda1998689cc Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 12 Nov 2017 00:05:54 +0000 Subject: [PATCH] showfile.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/showfile.c | 1 + sbr/showfile.h | 7 +++++++ uip/comp.c | 1 + uip/dist.c | 1 + uip/forw.c | 1 + uip/repl.c | 1 + uip/send.c | 1 + uip/whatnowsbr.c | 1 + 10 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sbr/showfile.h diff --git a/Makefile.am b/Makefile.am index 5dc26b97..065bae38 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index 44670f46..a70fa621 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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 diff --git a/sbr/showfile.c b/sbr/showfile.c index 4a06fd0d..7daadaed 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -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 index 00000000..8ff12b8c --- /dev/null +++ b/sbr/showfile.h @@ -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 *); diff --git a/uip/comp.c b/uip/comp.c index 29ca194d..6d088d87 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/showfile.h" #include "sbr/smatch.h" #include "sbr/refile.h" #include "sbr/cpydata.h" diff --git a/uip/dist.c b/uip/dist.c index b8e2fc5b..44d71368 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/showfile.h" #include "sbr/smatch.h" #include "sbr/refile.h" #include "sbr/cpydata.h" diff --git a/uip/forw.c b/uip/forw.c index cd68d0bf..04abd310 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/showfile.h" #include "sbr/smatch.h" #include "sbr/refile.h" #include "sbr/cpydata.h" diff --git a/uip/repl.c b/uip/repl.c index 018d0d9b..c73b8466 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -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" diff --git a/uip/send.c b/uip/send.c index 79628092..e6a74f31 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/showfile.h" #include "sbr/smatch.h" #include "sbr/closefds.h" #include "sbr/cpydata.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 2aad78ca..ca9365d4 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/showfile.h" #include "sbr/smatch.h" #include "sbr/r1bindex.h" #include "sbr/refile.h" -- 2.56.0