]> diplodocus.org Git - nmh/commitdiff
discard.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 17:19:06 +0000 (17:19 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:31 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/discard.c
sbr/discard.h [new file with mode: 0644]
uip/mhlsbr.c

index cdad315..ecd116d 100644 (file)
@@ -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 \
index cebd1b6..7eb5d75 100644 (file)
@@ -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.
index 6591bc0..c030d42 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "discard.h"
 
 #include <termios.h>
 
diff --git a/sbr/discard.h b/sbr/discard.h
new file mode 100644 (file)
index 0000000..cb7fd76
--- /dev/null
@@ -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 *);
index 013b27a..0225759 100644 (file)
@@ -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"