]> diplodocus.org Git - nmh/commitdiff
seq_getnum.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 2 Nov 2017 21:50:33 +0000 (21:50 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:25 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/m_convert.c
sbr/seq_getnum.h [new file with mode: 0644]
sbr/seq_list.c
sbr/seq_print.c
sbr/seq_setunseen.c
uip/flist.c
uip/fmttest.c
uip/refile.c
uip/scan.c

index 314288c..13b6d66 100644 (file)
@@ -377,6 +377,7 @@ noinst_HEADERS = \
     sbr/read_line.h \
     sbr/seq_add.h \
     sbr/seq_del.h \
+    sbr/seq_getnum.h \
     sbr/seq_print.h \
     sbr/terminal.h \
     sbr/unquote.h \
index 255f175..3e7d897 100644 (file)
@@ -204,7 +204,6 @@ int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished(void);
 char *seq_bits (struct msgs *);
-int seq_getnum (struct msgs *, char *);
 char *seq_list (struct msgs *, char *);
 int seq_nameok (char *);
 
index 64346fb..d5d0690 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_getnum.h"
 #include "error.h"
 #include "h/utils.h"
 
diff --git a/sbr/seq_getnum.h b/sbr/seq_getnum.h
new file mode 100644 (file)
index 0000000..a6668e4
--- /dev/null
@@ -0,0 +1,8 @@
+/* seq_getnum.h -- find the index for a sequence
+ *              -- return -1 if sequence doesn't exist
+ *
+ * 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 seq_getnum(struct msgs *, char *);
index 20617a5..5344510 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_getnum.h"
 #include "h/utils.h"
 
 /* allocate this much buffer space at a time */
index 6139bc1..e37c0ea 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_getnum.h"
 #include "seq_print.h"
 
 /*
index 298f263..4c92f15 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_getnum.h"
 #include "seq_del.h"
 #include "seq_add.h"
 #include "h/utils.h"
index 4435d2d..47b6922 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_getnum.h"
 #include "sbr/error.h"
 #include "h/utils.h"
 #include "h/done.h"
index 4214ab1..719214a 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_getnum.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/fmt_compile.h"
index 98df16a..2e9da1c 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_getnum.h"
 #include "sbr/seq_add.h"
 #include "sbr/arglist.h"
 #include "sbr/error.h"
index 8a8a59b..f39ef09 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_getnum.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/scansbr.h"