From: Ralph Corderoy Date: Sat, 11 Nov 2017 23:31:23 +0000 (+0000) Subject: strindex.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/12e3e0754ce067f30b3cdf7378ddbbaadff1ec7c?hp=2ad4aac7f0cb1c4981dfbe823bdebff8d7500515 strindex.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index fca67e7f..8b6064ec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -425,6 +425,7 @@ noinst_HEADERS = \ sbr/seq_nameok.h \ sbr/seq_print.h \ sbr/ssequal.h \ + sbr/strindex.h \ sbr/terminal.h \ sbr/trimcpy.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index b0603f42..529842c0 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 stringdex (char *, char *) PURE; /* * prototypes for some routines in uip diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 669572a5..876ecc12 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "strindex.h" #include "uprf.h" #include "getcpy.h" #include "context_find.h" diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 3c4c8d77..c5dc4f75 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -9,6 +9,7 @@ */ #include "h/mh.h" +#include "strindex.h" #include "fmt_rfc2047.h" #include "uprf.h" #include "context_find.h" diff --git a/sbr/strindex.c b/sbr/strindex.c index 8eaf6c22..559e7549 100644 --- a/sbr/strindex.c +++ b/sbr/strindex.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "strindex.h" #include "uprf.h" int diff --git a/sbr/strindex.h b/sbr/strindex.h new file mode 100644 index 00000000..a342b469 --- /dev/null +++ b/sbr/strindex.h @@ -0,0 +1,7 @@ +/* strindex.h -- "unsigned" lexical index + * + * 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 stringdex(char *, char *) PURE; diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 2d19f219..733e6e6e 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -7,6 +7,7 @@ #include "h/nmh.h" #include "h/mh.h" +#include "sbr/strindex.h" #include "sbr/error.h" #include "h/utils.h" #include "h/dropsbr.h" diff --git a/uip/slocal.c b/uip/slocal.c index 1666c1f6..28cd02d6 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -20,6 +20,7 @@ */ #include "h/mh.h" +#include "sbr/strindex.h" #include "sbr/closefds.h" #include "sbr/trimcpy.h" #include "sbr/getcpy.h"