From: Ralph Corderoy Date: Fri, 10 Nov 2017 23:13:42 +0000 (+0000) Subject: context_foil.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8e88279d72a407b373d8b427a0b610e1e5fb3c5b context_foil.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 4468e0e3..024fa1e2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index 8006f655..a2cc03e5 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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 index 00000000..791d4ab6 --- /dev/null +++ b/sbr/context_foil.h @@ -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 *); diff --git a/sbr/utils.c b/sbr/utils.c index 98fcf24c..9640cf1e 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "context_foil.h" #include "context_replace.h" #include "context_read.h" #include "context_find.h" diff --git a/uip/post.c b/uip/post.c index 3812f892..67ab820c 100644 --- a/uip/post.c +++ b/uip/post.c @@ -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"