From: Ralph Corderoy Date: Sat, 11 Nov 2017 16:22:30 +0000 (+0000) Subject: uprf.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b8a6686de69dbcedbf60f5880ba86994597f2c7f uprf.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 5a2f5dee..91fe095a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -417,6 +417,7 @@ noinst_HEADERS = \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ + sbr/uprf.h \ sbr/vector.h \ sbr/vfgets.h \ thirdparty/jsmn/jsmn.h \ diff --git a/h/prototypes.h b/h/prototypes.h index b762216b..08c88a5b 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -190,8 +190,6 @@ int ssequal (const char *, const char *) PURE; int stringdex (char *, char *) PURE; char *trimcpy (char *); -int uprf (const char *, const char *) PURE; - /* * prototypes for some routines in uip */ diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 62abfb99..669572a5 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "uprf.h" #include "getcpy.h" #include "context_find.h" #include "error.h" diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 1d8dd29c..74000876 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -9,6 +9,7 @@ */ #include "h/mh.h" +#include "uprf.h" #include "context_find.h" #include "error.h" #include "h/addrsbr.h" diff --git a/sbr/strindex.c b/sbr/strindex.c index c92da6ee..8eaf6c22 100644 --- a/sbr/strindex.c +++ b/sbr/strindex.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "uprf.h" int stringdex (char *p1, char *p2) diff --git a/sbr/uprf.c b/sbr/uprf.c index bcd4c135..9d9927fb 100644 --- a/sbr/uprf.c +++ b/sbr/uprf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "uprf.h" /* uprf returns true if s starts with prefix, ignoring case. diff --git a/sbr/uprf.h b/sbr/uprf.h new file mode 100644 index 00000000..3bbb9c8e --- /dev/null +++ b/sbr/uprf.h @@ -0,0 +1,7 @@ +/* uprf.h -- "unsigned" lexical prefix + * + * 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 uprf(const char *, const char *) PURE; diff --git a/uip/distsbr.c b/uip/distsbr.c index 096bf970..f48fbbe1 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/m_backup.h" #include "sbr/error.h" #include diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 54f763af..0a5ba670 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/check_charset.h" #include "sbr/getcpy.h" #include "sbr/m_convert.h" diff --git a/uip/mhparse.c b/uip/mhparse.c index fde0e2c3..d4a239cb 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/check_charset.h" #include "sbr/getcpy.h" #include "sbr/context_find.h" diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index a48d4b64..c93a1dfc 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/getcpy.h" #include "sbr/getfolder.h" #include "sbr/folder_read.h" diff --git a/uip/post.c b/uip/post.c index 67ab820c..80802fb1 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/context_foil.h" #include "sbr/readconfig.h" #include "sbr/ambigsw.h" diff --git a/uip/replsbr.c b/uip/replsbr.c index c3b19f42..2e9e507f 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/escape_addresses.h" #include "sbr/pidstatus.h" #include "sbr/arglist.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index ec7b4415..fa70c34a 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/getcpy.h" #include "sbr/m_convert.h" #include "sbr/m_backup.h" diff --git a/uip/show.c b/uip/show.c index b3c8303d..3e708dfb 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/check_charset.h" #include "sbr/m_draft.h" #include "sbr/m_convert.h" diff --git a/uip/sortm.c b/uip/sortm.c index 709fc6df..a9ce9854 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/uprf.h" #include "sbr/m_convert.h" #include "sbr/getfolder.h" #include "sbr/ext_hook.h"