]> diplodocus.org Git - nmh/commitdiff
whatnowproc.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:46:37 +0000 (13:46 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:46:37 +0000 (13:46 +0000)
Makefile.am
h/prototypes.h
uip/comp.c
uip/dist.c
uip/forw.c
uip/repl.c
uip/whatnowproc.c
uip/whatnowproc.h [new file with mode: 0644]

index 9a12006..4b904ed 100644 (file)
@@ -465,6 +465,7 @@ noinst_HEADERS = \
     uip/replsbr.h \
     uip/scansbr.h \
     uip/sendsbr.h \
+    uip/whatnowproc.h \
     #
 
 ##
index b3cd49f..477587e 100644 (file)
@@ -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;
index 6a22dd3..759d005 100644 (file)
@@ -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"
index 30ae67d..7ad5a4c 100644 (file)
@@ -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"
index a79fcc0..b575c05 100644 (file)
@@ -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"
index b71eb33..e588799 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "whatnowproc.h"
 #include "annosbr.h"
 #include "sbr/m_name.h"
 #include "sbr/getarguments.h"
index 3c6e2ef..6a10dba 100644 (file)
@@ -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 (file)
index 0000000..24fe891
--- /dev/null
@@ -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);