]> diplodocus.org Git - nmh/commitdiff
strindex.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 23:31:23 +0000 (23:31 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:33 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/addrsbr.c
sbr/fmt_scan.c
sbr/strindex.c
sbr/strindex.h [new file with mode: 0644]
uip/dropsbr.c
uip/slocal.c

index fca67e7fcd0fc4d81a5b4a5f1d1239f5500663dd..8b6064ec6d78b256b1e352fb39e063d9ae469ff8 100644 (file)
@@ -425,6 +425,7 @@ noinst_HEADERS = \
     sbr/seq_nameok.h \
     sbr/seq_print.h \
     sbr/ssequal.h \
     sbr/seq_nameok.h \
     sbr/seq_print.h \
     sbr/ssequal.h \
+    sbr/strindex.h \
     sbr/terminal.h \
     sbr/trimcpy.h \
     sbr/unquote.h \
     sbr/terminal.h \
     sbr/trimcpy.h \
     sbr/unquote.h \
index b0603f42315297cfbea0efedf6414ed5a9f3b660..529842c07cfa6996659299488c9d795f09650574 100644 (file)
@@ -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);
  * 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
 
 /*
  * prototypes for some routines in uip
index 669572a59d33dccf56351eacedc1cdd593ae2914..876ecc1236f636862e3b205c1ec66a9b859df047 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "strindex.h"
 #include "uprf.h"
 #include "getcpy.h"
 #include "context_find.h"
 #include "uprf.h"
 #include "getcpy.h"
 #include "context_find.h"
index 3c4c8d777b203f3ca6b7d711515a5f8b585297fa..c5dc4f753b3f78a409e3fc03c5c4655f3aede248 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "strindex.h"
 #include "fmt_rfc2047.h"
 #include "uprf.h"
 #include "context_find.h"
 #include "fmt_rfc2047.h"
 #include "uprf.h"
 #include "context_find.h"
index 8eaf6c22883c81d0598c916a43affd65d74e3b59..559e75490677bb2b09ba139da624aafebb3cfb7c 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "strindex.h"
 #include "uprf.h"
 
 int
 #include "uprf.h"
 
 int
diff --git a/sbr/strindex.h b/sbr/strindex.h
new file mode 100644 (file)
index 0000000..a342b46
--- /dev/null
@@ -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;
index 2d19f2196dd1ce88361bacab567586199f3ba93e..733e6e6e4701681d4bdb5873b8e78e85cc2d0da5 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "h/nmh.h"
 #include "h/mh.h"
 
 #include "h/nmh.h"
 #include "h/mh.h"
+#include "sbr/strindex.h"
 #include "sbr/error.h"
 #include "h/utils.h"
 #include "h/dropsbr.h"
 #include "sbr/error.h"
 #include "h/utils.h"
 #include "h/dropsbr.h"
index 1666c1f6915b3924644e432a751487b41f192ac3..28cd02d6b2998db2660a5dea6b530ad45bc3db85 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/strindex.h"
 #include "sbr/closefds.h"
 #include "sbr/trimcpy.h"
 #include "sbr/getcpy.h"
 #include "sbr/closefds.h"
 #include "sbr/trimcpy.h"
 #include "sbr/getcpy.h"