From 69c535eeaa37eb89ce89a51e8577587ffc3c2195 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 18:09:43 +0000 Subject: [PATCH] seq_add.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/seq_add.c | 1 + sbr/seq_add.h | 8 ++++++++ sbr/seq_setcur.c | 1 + sbr/seq_setprev.c | 1 + sbr/seq_setunseen.c | 1 + uip/mark.c | 1 + uip/pick.c | 1 + uip/rcvstore.c | 1 + uip/refile.c | 1 + 11 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sbr/seq_add.h diff --git a/Makefile.am b/Makefile.am index 20a55273..1bc9d76c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index 9e82ddfd..1507e206 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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); diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 8b51e31e..baeb305f 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -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 index 00000000..ab027b7e --- /dev/null +++ b/sbr/seq_add.h @@ -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); diff --git a/sbr/seq_setcur.c b/sbr/seq_setcur.c index cb995fcd..aa83edaf 100644 --- a/sbr/seq_setcur.c +++ b/sbr/seq_setcur.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_add.h" void diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index a2dc3015..cfdfd610 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_add.h" #include "h/utils.h" /* diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index c521f9c6..460f8cc9 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_add.h" #include "h/utils.h" /* diff --git a/uip/mark.c b/uip/mark.c index 9ec5c5ca..68ba9e30 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -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" diff --git a/uip/pick.c b/uip/pick.c index 737814a8..b5a7cdd6 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -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" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index b5bdd2fd..9c609c23 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_add.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/refile.c b/uip/refile.c index 58de202c..98df16a8 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -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" -- 2.56.0