From 9f1e781a5c2beb9df943c832300a3f5bee1e4ed3 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 21:40:11 +0000 Subject: [PATCH] seq_del.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/seq_del.h | 8 ++++++++ sbr/seq_setunseen.c | 1 + uip/mark.c | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 sbr/seq_del.h diff --git a/Makefile.am b/Makefile.am index 8d2393f5..314288cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/mime_type.h \ sbr/read_line.h \ sbr/seq_add.h \ + sbr/seq_del.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 1e0d60a0..255f1758 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -204,8 +204,6 @@ int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); char *seq_bits (struct msgs *); -int seq_delmsg (struct msgs *, char *, int); -int seq_delsel (struct msgs *, char *, int, int); int seq_getnum (struct msgs *, char *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); diff --git a/sbr/seq_del.h b/sbr/seq_del.h new file mode 100644 index 00000000..97367b8c --- /dev/null +++ b/sbr/seq_del.h @@ -0,0 +1,8 @@ +/* seq_del.h -- delete message(s) from 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_delmsg(struct msgs *, char *, int); +int seq_delsel(struct msgs *, char *, int, int); diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 460f8cc9..298f2637 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_del.h" #include "seq_add.h" #include "h/utils.h" diff --git a/uip/mark.c b/uip/mark.c index 0b21fd83..d2f90571 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_del.h" #include "sbr/seq_print.h" #include "sbr/seq_add.h" #include "sbr/error.h" -- 2.56.0