From: Ralph Corderoy Date: Fri, 10 Nov 2017 18:06:35 +0000 (+0000) Subject: context_del.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9f2cae361bfe34376b5b390980e506737b63b8b8 context_del.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 6ff7b0e0..596a7733 100644 --- a/Makefile.am +++ b/Makefile.am @@ -367,6 +367,7 @@ noinst_HEADERS = \ sbr/atooi.h \ sbr/base64.h \ sbr/brkstring.h \ + sbr/context_del.h \ sbr/context_find.h \ sbr/ctype-checked.h \ sbr/error.h \ diff --git a/h/prototypes.h b/h/prototypes.h index cda99fcc..8628c8c0 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_del (char *); int context_foil (char *); void context_read (void); void context_replace (char *, char *); diff --git a/sbr/context_del.c b/sbr/context_del.c index bd7ae70d..b0caa5ca 100644 --- a/sbr/context_del.c +++ b/sbr/context_del.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "context_del.h" #include "error.h" #include "h/utils.h" diff --git a/sbr/context_del.h b/sbr/context_del.h new file mode 100644 index 00000000..052a7dfa --- /dev/null +++ b/sbr/context_del.h @@ -0,0 +1,7 @@ +/* context_del.h -- delete an entry from the context/profile list + * + * 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_del(char *); diff --git a/sbr/seq_save.c b/sbr/seq_save.c index e829a75f..4731030b 100644 --- a/sbr/seq_save.c +++ b/sbr/seq_save.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "context_del.h" #include "seq_list.h" #include "error.h" #include "h/signals.h" diff --git a/uip/folder.c b/uip/folder.c index 3c11460f..ef6bcf65 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/context_del.h" #include "sbr/context_find.h" #include "sbr/brkstring.h" #include "sbr/ambigsw.h" diff --git a/uip/rmf.c b/uip/rmf.c index 0771d2a7..3043d316 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/context_del.h" #include "sbr/context_find.h" #include "sbr/ambigsw.h" #include "sbr/path.h"