]> diplodocus.org Git - nmh/commitdiff
context_foil.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 10 Nov 2017 23:13:42 +0000 (23:13 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:28 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/context_foil.h [new file with mode: 0644]
sbr/utils.c
uip/post.c

index 4468e0e..024fa1e 100644 (file)
@@ -369,6 +369,7 @@ noinst_HEADERS = \
     sbr/brkstring.h \
     sbr/context_del.h \
     sbr/context_find.h \
+    sbr/context_foil.h \
     sbr/context_read.h \
     sbr/context_replace.h \
     sbr/context_save.h \
index 8006f65..a2cc03e 100644 (file)
@@ -30,7 +30,6 @@ int check_charset (char *, int);
 int client(char *, char *, char *, int, int);
 void closefds(int);
 char *concat (const char *, ...) ENDNULL;
-int context_foil (char *);
 char **copyip (char **, char **, int);
 void cpydata (int, int, const char *, const char *);
 void cpydgst (int, int, char *, char *);
diff --git a/sbr/context_foil.h b/sbr/context_foil.h
new file mode 100644 (file)
index 0000000..791d4ab
--- /dev/null
@@ -0,0 +1,7 @@
+/* context_foil.h -- foil search of profile and context
+ *
+ * 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 context_foil(char *);
index 98fcf24..9640cf1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "context_foil.h"
 #include "context_replace.h"
 #include "context_read.h"
 #include "context_find.h"
index 3812f89..67ab820 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/context_foil.h"
 #include "sbr/readconfig.h"
 #include "sbr/ambigsw.h"
 #include "sbr/pidstatus.h"