From b58b7131a770a85a3058322efddf103e794f559f Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:49:07 +0000 Subject: [PATCH] whatnowsbr.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - uip/whatnow.c | 1 + uip/whatnowproc.c | 1 + uip/whatnowsbr.c | 1 + uip/whatnowsbr.h | 7 +++++++ 6 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 uip/whatnowsbr.h 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; -- 2.56.0