From: Ralph Corderoy Date: Fri, 10 Nov 2017 22:50:36 +0000 (+0000) Subject: context_read.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/70111d4b18b8bae45f7e5a2c6174360161e69d87 context_read.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 596a7733..7db4e89b 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_read.h \ sbr/ctype-checked.h \ sbr/error.h \ sbr/lock_file.h \ diff --git a/config/config.c b/config/config.c index 4d380557..55d862e7 100644 --- a/config/config.c +++ b/config/config.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/context_read.h" #include "sbr/m_maildir.h" #include diff --git a/h/prototypes.h b/h/prototypes.h index 8628c8c0..dc4f5979 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -31,7 +31,6 @@ int client(char *, char *, char *, int, int); void closefds(int); char *concat (const char *, ...) ENDNULL; int context_foil (char *); -void context_read (void); void context_replace (char *, char *); void context_save (void); char **copyip (char **, char **, int); diff --git a/sbr/context_read.c b/sbr/context_read.c index b90c5c13..fe64fc17 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -22,6 +22,7 @@ */ #include "h/mh.h" +#include "context_read.h" #include "context_find.h" #include "readconfig.h" #include "path.h" diff --git a/sbr/context_read.h b/sbr/context_read.h new file mode 100644 index 00000000..32dd499b --- /dev/null +++ b/sbr/context_read.h @@ -0,0 +1,7 @@ +/* context_read.h -- find and read profile and context files + * + * 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. */ + +void context_read(void); diff --git a/sbr/utils.c b/sbr/utils.c index feb7eccf..673c4c43 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "context_read.h" #include "context_find.h" #include "print_help.h" #include "error.h"