From: Ralph Corderoy Date: Sat, 11 Nov 2017 23:28:30 +0000 (+0000) Subject: ssequal.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2ad4aac7f0cb1c4981dfbe823bdebff8d7500515?hp=db8011d59fd72ef03d9866a345f4a017f2cb11e0 ssequal.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 93a1ca8b..fca67e7f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -424,6 +424,7 @@ noinst_HEADERS = \ sbr/seq_list.h \ sbr/seq_nameok.h \ sbr/seq_print.h \ + sbr/ssequal.h \ sbr/terminal.h \ sbr/trimcpy.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index b04fbcfd..b0603f42 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -145,7 +145,6 @@ int smatch(const char *, const struct swit *) PURE; * from least significant bit to most significant. */ char *snprintb (char *buffer, size_t size, unsigned flags, char *bitfield); -int ssequal (const char *, const char *) PURE; int stringdex (char *, char *) PURE; /* diff --git a/sbr/m_convert.c b/sbr/m_convert.c index f62fbb0c..be12e507 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ssequal.h" #include "m_convert.h" #include "folder_realloc.h" #include "context_find.h" diff --git a/sbr/path.c b/sbr/path.c index 5505451e..a6568db8 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ssequal.h" #include "getfolder.h" #include "path.h" #include "h/utils.h" diff --git a/sbr/print_sw.c b/sbr/print_sw.c index 7e11a92d..d8628b82 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ssequal.h" #include "print_sw.h" diff --git a/sbr/seq_read.c b/sbr/seq_read.c index c0043350..751568c3 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "ssequal.h" #include "trimcpy.h" #include "getcpy.h" #include "m_atoi.h" diff --git a/sbr/ssequal.c b/sbr/ssequal.c index 0704a0a1..ff249485 100644 --- a/sbr/ssequal.c +++ b/sbr/ssequal.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ssequal.h" /* * THIS CODE DOES NOT WORK AS ADVERTISED. diff --git a/sbr/ssequal.h b/sbr/ssequal.h new file mode 100644 index 00000000..dc40f53d --- /dev/null +++ b/sbr/ssequal.h @@ -0,0 +1,7 @@ +/* ssequal.h -- check if a string is a substring of another + * + * 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 ssequal(const char *, const char *) PURE; diff --git a/uip/flist.c b/uip/flist.c index 5ea877d8..0e2e9dd5 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/ssequal.h" #include "sbr/getfolder.h" #include "sbr/folder_read.h" #include "sbr/folder_free.h" diff --git a/uip/folder.c b/uip/folder.c index 98006072..fe624464 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/ssequal.h" #include "sbr/getcpy.h" #include "sbr/m_convert.h" #include "sbr/getfolder.h" diff --git a/uip/rmf.c b/uip/rmf.c index 8244a216..81ec94e6 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/ssequal.h" #include "sbr/m_atoi.h" #include "sbr/getfolder.h" #include "sbr/ext_hook.h"