From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:49:07 +0000 (+0000) Subject: whatnowsbr.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b58b7131a770a85a3058322efddf103e794f559f?ds=inline;hp=de5f9e12d88f6f9c7a335e3271d42ef164c770c5 whatnowsbr.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 4b904ed5..42e75a5f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -466,6 +466,7 @@ noinst_HEADERS = \ uip/scansbr.h \ uip/sendsbr.h \ uip/whatnowproc.h \ + uip/whatnowsbr.h \ # ## diff --git a/h/prototypes.h b/h/prototypes.h index 477587ec..a0e10b43 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -21,4 +21,3 @@ int pidwait (pid_t, int); * prototypes for some routines in uip */ int mhlsbr(int, char **, FILE *(*)(char *)); -int WhatNow(int, char **) NORETURN; diff --git a/uip/whatnow.c b/uip/whatnow.c index b571994a..1d426f04 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowsbr.h" #include "h/utils.h" diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 6a10dba6..badd8daa 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "whatnowsbr.h" #include "whatnowproc.h" #include "sbr/m_name.h" #include "sbr/r1bindex.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 4363b894..e1729df7 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "whatnowsbr.h" #include "sendsbr.h" #include "annosbr.h" #include "sbr/m_getfld.h" diff --git a/uip/whatnowsbr.h b/uip/whatnowsbr.h new file mode 100644 index 00000000..292c5f3f --- /dev/null +++ b/uip/whatnowsbr.h @@ -0,0 +1,7 @@ +/* whatnowsbr.h -- the WhatNow shell + * + * 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 WhatNow(int, char **) NORETURN;