From: Ralph Corderoy Date: Sat, 11 Nov 2017 17:19:06 +0000 (+0000) Subject: discard.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/91509a18604a71d8af13c7228af960a0cf03c411?hp=448af057e4eb658120efc1ad61ac10074775a130 discard.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index cdad315b..ecd116d9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -375,6 +375,7 @@ noinst_HEADERS = \ sbr/context_replace.h \ sbr/context_save.h \ sbr/ctype-checked.h \ + sbr/discard.h \ sbr/error.h \ sbr/escape_addresses.h \ sbr/ext_hook.h \ diff --git a/h/prototypes.h b/h/prototypes.h index cebd1b6a..7eb5d759 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -22,7 +22,6 @@ char **copyip (char **, char **, int); void cpydata (int, int, const char *, const char *); void cpydgst (int, int, char *, char *); int decode_rfc2047 (char *, char *, size_t); -void discard (FILE *); /* * Decode two characters into their quoted-printable representation. diff --git a/sbr/discard.c b/sbr/discard.c index 6591bc04..c030d423 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "discard.h" #include diff --git a/sbr/discard.h b/sbr/discard.h new file mode 100644 index 00000000..cb7fd769 --- /dev/null +++ b/sbr/discard.h @@ -0,0 +1,7 @@ +/* discard.h -- discard output on a file pointer + * + * 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 discard(FILE *); diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 013b27a0..02257598 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/discard.h" #include "sbr/trimcpy.h" #include "sbr/vfgets.h" #include "sbr/check_charset.h"