From: Ralph Corderoy Date: Thu, 2 Nov 2017 18:19:59 +0000 (+0000) Subject: seq_print.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/33816ab133a3538f3f4f6e043e61327046c02b3e?ds=sidebyside seq_print.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 1bc9d76c..8d2393f5 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_print.h \ sbr/terminal.h \ sbr/unquote.h \ thirdparty/jsmn/jsmn.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 1507e206..1e0d60a0 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -209,8 +209,6 @@ int seq_delsel (struct msgs *, char *, int, int); int seq_getnum (struct msgs *, char *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); -void seq_print (struct msgs *, char *); -void seq_printall (struct msgs *); /* * Read the sequence files for the folder referenced in the given diff --git a/sbr/seq_print.c b/sbr/seq_print.c index a373d925..6139bc14 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_print.h" /* * Print all the sequences in a folder diff --git a/sbr/seq_print.h b/sbr/seq_print.h new file mode 100644 index 00000000..adf1cfc3 --- /dev/null +++ b/sbr/seq_print.h @@ -0,0 +1,8 @@ +/* seq_print.h -- Routines to print sequence information. + * + * 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_printall(struct msgs *); +void seq_print(struct msgs *, char *); diff --git a/uip/mark.c b/uip/mark.c index 68ba9e30..0b21fd83 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_print.h" #include "sbr/seq_add.h" #include "sbr/error.h" #include "h/done.h"