]> diplodocus.org Git - nmh/commitdiff
seq_list.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 2 Nov 2017 22:47:58 +0000 (22:47 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:25 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/seq_list.c
sbr/seq_list.h [new file with mode: 0644]
sbr/seq_print.c
sbr/seq_save.c

index e2e4f81..0b03fac 100644 (file)
@@ -379,6 +379,7 @@ noinst_HEADERS = \
     sbr/seq_bits.h \
     sbr/seq_del.h \
     sbr/seq_getnum.h \
+    sbr/seq_list.h \
     sbr/seq_print.h \
     sbr/terminal.h \
     sbr/unquote.h \
index 910b62c..4dd63f5 100644 (file)
@@ -203,7 +203,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags);
 int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished(void);
-char *seq_list (struct msgs *, char *);
 int seq_nameok (char *);
 
 /*
index 5344510..2ebf6dd 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_list.h"
 #include "seq_getnum.h"
 #include "h/utils.h"
 
diff --git a/sbr/seq_list.h b/sbr/seq_list.h
new file mode 100644 (file)
index 0000000..2c93901
--- /dev/null
@@ -0,0 +1,8 @@
+/* seq_list.h -- Get all messages in a sequence and return them
+ *            -- as a space separated list of message ranges.
+ *
+ * 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. */
+
+char *seq_list(struct msgs *, char *);
index e37c0ea..4e4b946 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_list.h"
 #include "seq_getnum.h"
 #include "seq_print.h"
 
index 5978dd7..e829a75 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_list.h"
 #include "error.h"
 #include "h/signals.h"
 #include "lock_file.h"