From: Ralph Corderoy Date: Sun, 12 Nov 2017 00:20:19 +0000 (+0000) Subject: seq_setunseen.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/142729be43ce2f38952a3b97e351b419c7cba2b2?ds=inline seq_setunseen.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index e53d76fe..8926d76a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -433,6 +433,7 @@ noinst_HEADERS = \ sbr/seq_save.h \ sbr/seq_setcur.h \ sbr/seq_setprev.h \ + sbr/seq_setunseen.h \ sbr/showfile.h \ sbr/smatch.h \ sbr/snprintb.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 4d0e353d..2e7bb328 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -67,8 +67,6 @@ int pidwait (pid_t, int); void scan_detect_mbox_style (FILE *); void scan_finished(void); -void seq_setunseen (struct msgs *, int); - /* * prototypes for some routines in uip */ diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 058648c7..bcad3f18 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_setunseen.h" #include "context_find.h" #include "brkstring.h" #include "seq_getnum.h" diff --git a/sbr/seq_setunseen.h b/sbr/seq_setunseen.h new file mode 100644 index 00000000..3a1cc18d --- /dev/null +++ b/sbr/seq_setunseen.h @@ -0,0 +1,8 @@ +/* seq_setunseen.h -- add/delete all messages which have the SELECT_UNSEEN + * -- bit set to/from the Unseen-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. */ + +void seq_setunseen(struct msgs *, int); diff --git a/uip/inc.c b/uip/inc.c index 49e6a61c..8e9416c9 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include "h/mh.h" +#include "sbr/seq_setunseen.h" #include "sbr/seq_setcur.h" #include "sbr/seq_save.h" #include "sbr/smatch.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index a39622f9..8b07cb92 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_setunseen.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" #include "sbr/seq_save.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 341753d0..e01a5a26 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_setunseen.h" #include "sbr/seq_save.h" #include "sbr/smatch.h" #include "sbr/cpydata.h" diff --git a/uip/show.c b/uip/show.c index 6467ec14..f77b8f0a 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_setunseen.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" #include "sbr/seq_save.h"