From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:46:37 +0000 (+0000) Subject: whatnowproc.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/de5f9e12d88f6f9c7a335e3271d42ef164c770c5 whatnowproc.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 9a120068..4b904ed5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -465,6 +465,7 @@ noinst_HEADERS = \ uip/replsbr.h \ uip/scansbr.h \ uip/sendsbr.h \ + uip/whatnowproc.h \ # ## diff --git a/h/prototypes.h b/h/prototypes.h index b3cd49f6..477587ec 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -21,6 +21,4 @@ int pidwait (pid_t, int); * prototypes for some routines in uip */ int mhlsbr(int, char **, FILE *(*)(char *)); -int what_now (char *, int, int, char *, char *, - int, struct msgs *, char *, int, char *, int); int WhatNow(int, char **) NORETURN; diff --git a/uip/comp.c b/uip/comp.c index 6a22dd30..759d0050 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowproc.h" #include "sbr/m_name.h" #include "sbr/m_gmprot.h" #include "sbr/getarguments.h" diff --git a/uip/dist.c b/uip/dist.c index 30ae67d9..7ad5a4cd 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowproc.h" #include "sbr/m_name.h" #include "sbr/m_gmprot.h" #include "sbr/getarguments.h" diff --git a/uip/forw.c b/uip/forw.c index a79fcc05..b575c05a 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowproc.h" #include "sbr/m_name.h" #include "sbr/m_gmprot.h" #include "sbr/getarguments.h" diff --git a/uip/repl.c b/uip/repl.c index b71eb33f..e588799e 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowproc.h" #include "annosbr.h" #include "sbr/m_name.h" #include "sbr/getarguments.h" diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 3c6e2ef7..6a10dba6 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowproc.h" #include "sbr/m_name.h" #include "sbr/r1bindex.h" #include "sbr/geteditor.h" diff --git a/uip/whatnowproc.h b/uip/whatnowproc.h new file mode 100644 index 00000000..24fe8916 --- /dev/null +++ b/uip/whatnowproc.h @@ -0,0 +1,7 @@ +/* whatnowproc.h -- exec the "whatnowproc" + * + * 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 what_now(char *, int, int, char *, char *, int, struct msgs *, char *, int, char *, int);