From: Ralph Corderoy Date: Thu, 2 Nov 2017 21:40:11 +0000 (+0000) Subject: seq_del.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9f1e781a5c2beb9df943c832300a3f5bee1e4ed3?hp=33816ab133a3538f3f4f6e043e61327046c02b3e seq_del.c: Move interface to own file. --- 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"