From: Ralph Corderoy Date: Thu, 2 Nov 2017 22:56:32 +0000 (+0000) Subject: seq_nameok.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f9af1bc563cd2ead96ac6b5e4a22ae095f3d63f3?ds=sidebyside;hp=865cc1bd7e146d8a3fe44ede30d834f7ab0c195c seq_nameok.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 0b03fac7..ab0bcd9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -380,6 +380,7 @@ noinst_HEADERS = \ sbr/seq_del.h \ sbr/seq_getnum.h \ sbr/seq_list.h \ + sbr/seq_nameok.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 4dd63f5c..6f79c6da 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -203,7 +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_nameok (char *); /* * Read the sequence files for the folder referenced in the given diff --git a/sbr/seq_add.c b/sbr/seq_add.c index baeb305f..9c27f302 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "seq_add.h" #include "error.h" diff --git a/sbr/seq_del.c b/sbr/seq_del.c index b4f5a527..4abd745d 100644 --- a/sbr/seq_del.c +++ b/sbr/seq_del.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "error.h" diff --git a/sbr/seq_nameok.c b/sbr/seq_nameok.c index f537a71f..9333294d 100644 --- a/sbr/seq_nameok.c +++ b/sbr/seq_nameok.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "error.h" diff --git a/sbr/seq_nameok.h b/sbr/seq_nameok.h new file mode 100644 index 00000000..eda6c695 --- /dev/null +++ b/sbr/seq_nameok.h @@ -0,0 +1,7 @@ +/* seq_nameok.h -- check if a sequence name is ok + * + * 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_nameok(char *); diff --git a/uip/pick.c b/uip/pick.c index b5a7cdd6..21ae8b36 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_nameok.h" #include "sbr/seq_add.h" #include "sbr/error.h" #include "h/tws.h"