]> diplodocus.org Git - nmh/commitdiff
scansbr.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:24:05 +0000 (13:24 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:30:24 +0000 (13:30 +0000)
Merging in content of existing h/scansbr.h, though that only contained
one of the three prototypes.  The other two were in h/prototypes.h.

Makefile.am
h/prototypes.h
uip/fmtdump.c
uip/fmttest.c
uip/inc.c
uip/rcvtty.c
uip/scan.c
uip/scansbr.c
uip/scansbr.h [moved from h/scansbr.h with 72% similarity]

index 94f82fc..419b1b1 100644 (file)
@@ -357,7 +357,6 @@ noinst_HEADERS = \
     h/popsbr.h \
     h/prototypes.h \
     h/rcvmail.h \
-    h/scansbr.h \
     h/signals.h \
     h/tws.h \
     h/utils.h \
@@ -461,6 +460,7 @@ noinst_HEADERS = \
     uip/mhoutsbr.h \
     uip/mhshowsbr.h \
     uip/replsbr.h \
+    uip/scansbr.h \
     #
 
 ##
index d47ac22..f126523 100644 (file)
@@ -17,9 +17,6 @@ struct msgs_array;
 
 int pidwait (pid_t, int);
 
-void scan_detect_mbox_style (FILE *);
-void scan_finished(void);
-
 /*
  * prototypes for some routines in uip
  */
index 0545c0d..9f1f162 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/getarguments.h"
 #include "sbr/smatch.h"
 #include "sbr/ambigsw.h"
@@ -14,7 +15,6 @@
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/fmt_compile.h"
-#include "h/scansbr.h"
 #include "h/done.h"
 #include "h/utils.h"
 
index 94c3b97..72f60f9 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/m_name.h"
 #include "sbr/m_getfld.h"
 #include "sbr/getarguments.h"
@@ -31,7 +32,6 @@
 #include "h/fmt_scan.h"
 #include "h/fmt_compile.h"
 #include "h/utils.h"
-#include "h/scansbr.h"
 #include "h/addrsbr.h"
 #include "h/done.h"
 #include "sbr/m_maildir.h"
index ac39f72..70dddbd 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -31,6 +31,7 @@
 #endif
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/m_name.h"
 #include "sbr/m_gmprot.h"
 #include "sbr/getarguments.h"
@@ -57,7 +58,6 @@
 #include "h/dropsbr.h"
 #include "h/popsbr.h"
 #include "h/fmt_scan.h"
-#include "h/scansbr.h"
 #include "h/signals.h"
 #include "h/tws.h"
 #include "h/mts.h"
index 77fa8bd..6f8ded3 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/getarguments.h"
 #include "sbr/smatch.h"
 #include "sbr/closefds.h"
@@ -21,7 +22,6 @@
 #include "h/signals.h"
 #include <setjmp.h>
 #include "h/rcvmail.h"
-#include "h/scansbr.h"
 #include "h/fmt_scan.h"
 #include "h/tws.h"
 #include "h/mts.h"
index 654f378..b74b360 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/m_name.h"
 #include "sbr/getarguments.h"
 #include "sbr/seq_setprev.h"
@@ -26,7 +27,6 @@
 #include "sbr/seq_getnum.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
-#include "h/scansbr.h"
 #include "h/tws.h"
 #include "h/mts.h"
 #include "h/done.h"
index 28c382f..81abc7d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "scansbr.h"
 #include "sbr/m_name.h"
 #include "sbr/m_gmprot.h"
 #include "sbr/m_getfld.h"
@@ -13,7 +14,6 @@
 #include "sbr/error.h"
 #include "h/addrsbr.h"
 #include "h/fmt_scan.h"
-#include "h/scansbr.h"
 #include "h/tws.h"
 #include "h/utils.h"
 #include "sbr/terminal.h"
similarity index 72%
rename from h/scansbr.h
rename to uip/scansbr.h
index 0aa5cc5..a7c8aed 100644 (file)
@@ -1,5 +1,8 @@
-/* scansbr.h -- definitions for scan()
- */
+/* scansbr.h -- routines to help scan along...
+ *
+ * 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. */
 
 #define        SCNENC  2               /* message just fine, but encrypted(!!) */
 #define        SCNMSG  1               /* message just fine                    */
@@ -30,8 +33,6 @@
 
 #define        WIDTH  78
 
-/*
- * prototypes
- */
-int scan (FILE *, int, int, char *, int, int, int, char *, long, int,
-          charstring_t *);
+int scan(FILE *, int, int, char *, int, int, int, char *, long, int, charstring_t *);
+void scan_finished(void);
+void scan_detect_mbox_style(FILE *);