]> diplodocus.org Git - nmh/commitdiff
ssequal.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 23:28:30 +0000 (23:28 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:33 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/m_convert.c
sbr/path.c
sbr/print_sw.c
sbr/seq_read.c
sbr/ssequal.c
sbr/ssequal.h [new file with mode: 0644]
uip/flist.c
uip/folder.c
uip/rmf.c

index 93a1ca8..fca67e7 100644 (file)
@@ -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 \
index b04fbcf..b0603f4 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);
-int ssequal (const char *, const char *) PURE;
 int stringdex (char *, char *) PURE;
 
 /*
index f62fbb0..be12e50 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "ssequal.h"
 #include "m_convert.h"
 #include "folder_realloc.h"
 #include "context_find.h"
index 5505451..a6568db 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "ssequal.h"
 #include "getfolder.h"
 #include "path.h"
 #include "h/utils.h"
index 7e11a92..d8628b8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "ssequal.h"
 #include "print_sw.h"
 
 
index c004335..751568c 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "ssequal.h"
 #include "trimcpy.h"
 #include "getcpy.h"
 #include "m_atoi.h"
index 0704a0a..ff24948 100644 (file)
@@ -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 (file)
index 0000000..dc40f53
--- /dev/null
@@ -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;
index 5ea877d..0e2e9dd 100644 (file)
@@ -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"
index 9800607..fe62446 100644 (file)
@@ -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"
index 8244a21..81ec94e 100644 (file)
--- 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"