]> diplodocus.org Git - nmh/commitdiff
seq_add.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 2 Nov 2017 18:09:43 +0000 (18:09 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:24 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/seq_add.c
sbr/seq_add.h [new file with mode: 0644]
sbr/seq_setcur.c
sbr/seq_setprev.c
sbr/seq_setunseen.c
uip/mark.c
uip/pick.c
uip/rcvstore.c
uip/refile.c

index 20a5527..1bc9d76 100644 (file)
@@ -375,6 +375,7 @@ noinst_HEADERS = \
     sbr/message_id.h \
     sbr/mime_type.h \
     sbr/read_line.h \
+    sbr/seq_add.h \
     sbr/terminal.h \
     sbr/unquote.h \
     thirdparty/jsmn/jsmn.h \
index 9e82ddf..1507e20 100644 (file)
@@ -203,8 +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);
-int seq_addmsg (struct msgs *, char *, int, int, int);
-int seq_addsel (struct msgs *, char *, int, int);
 char *seq_bits (struct msgs *);
 int seq_delmsg (struct msgs *, char *, int);
 int seq_delsel (struct msgs *, char *, int, int);
index 8b51e31..baeb305 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_add.h"
 #include "error.h"
 
 
diff --git a/sbr/seq_add.h b/sbr/seq_add.h
new file mode 100644 (file)
index 0000000..ab027b7
--- /dev/null
@@ -0,0 +1,8 @@
+/* seq_add.h -- add message(s) to a sequence
+ *
+ * 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_addsel(struct msgs *, char *, int, int);
+int seq_addmsg(struct msgs *, char *, int, int, int);
index cb995fc..aa83eda 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_add.h"
 
 
 void
index a2dc301..cfdfd61 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_add.h"
 #include "h/utils.h"
 
 /*
index c521f9c..460f8cc 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "seq_add.h"
 #include "h/utils.h"
 
 /*
index 9ec5c5c..68ba9e3 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_add.h"
 #include "sbr/error.h"
 #include "h/done.h"
 #include "h/utils.h"
index 737814a..b5a7cdd 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_add.h"
 #include "sbr/error.h"
 #include "h/tws.h"
 #include "h/picksbr.h"
index b5bdd2f..9c609c2 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_add.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/signals.h"
index 58de202..98df16a 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/seq_add.h"
 #include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/done.h"