From: Ralph Corderoy Date: Thu, 2 Nov 2017 01:58:09 +0000 (+0000) Subject: forwsbr.c: Move interface declaration to own forwsbr.h. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/080568bfb0056607359204678f84d23c74f02832 forwsbr.c: Move interface declaration to own forwsbr.h. --- diff --git a/Makefile.am b/Makefile.am index cfc5c94f..2b0c7094 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/terminal.h \ sbr/unquote.h \ thirdparty/jsmn/jsmn.h \ + uip/forwsbr.h \ uip/mhfree.h \ uip/mhmisc.h \ uip/mhoutsbr.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 4b6cb98d..d9546763 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -316,8 +316,6 @@ void m_pclose(void); int mhl(int, char **); int mhlsbr(int, char **, FILE *(*)(char *)); int distout (char *, char *, char *); -int build_form (char *, char *, int *, char *, char *, char *, char *, - char *, char *); int sendsbr (char **, int, char *, char *, struct stat *, int, const char *); int what_now (char *, int, int, char *, char *, int, struct msgs *, char *, int, char *, int); diff --git a/uip/dist.c b/uip/dist.c index d42cfef5..d2c48875 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -10,6 +10,7 @@ #include "sbr/m_maildir.h" #include #include "h/done.h" +#include "forwsbr.h" #define DIST_SWITCHES \ X("annotate", 0, ANNOSW) \ diff --git a/uip/forw.c b/uip/forw.c index 6e9f3bd7..9692ae40 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -11,6 +11,7 @@ #include "h/done.h" #include #include "sbr/m_maildir.h" +#include "forwsbr.h" #define IFORMAT "digest-issue-%s" diff --git a/uip/forwsbr.c b/uip/forwsbr.c index b33b9905..608e2555 100644 --- a/uip/forwsbr.c +++ b/uip/forwsbr.c @@ -11,6 +11,7 @@ #include #include #include "sbr/m_mktemp.h" +#include "forwsbr.h" /* * Take from replsbr.c - a buffer big enough to read in data header lines diff --git a/uip/forwsbr.h b/uip/forwsbr.h new file mode 100644 index 00000000..a67b8ae0 --- /dev/null +++ b/uip/forwsbr.h @@ -0,0 +1,9 @@ +/* forwsbr.h -- subroutine to build a draft from a component file + * + * 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 +build_form(char *form, char *digest, int *dat, char *from, char *to, + char *cc, char *fcc, char *subject, char *inputfile);