]> diplodocus.org Git - nmh/commitdiff
print_sw.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 2 Nov 2017 23:16:21 +0000 (23:16 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:25 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/ambigsw.c
sbr/print_help.c
sbr/print_sw.c
sbr/print_sw.h [new file with mode: 0644]
sbr/read_switch_multiword.c
sbr/read_switch_multiword_via_readline.c

index 52332b0..3f32273 100644 (file)
@@ -375,6 +375,7 @@ noinst_HEADERS = \
     sbr/message_id.h \
     sbr/mime_type.h \
     sbr/print_help.h \
+    sbr/print_sw.h \
     sbr/read_line.h \
     sbr/seq_add.h \
     sbr/seq_bits.h \
index bd68e35..1cbc6ea 100644 (file)
@@ -175,7 +175,6 @@ char *path(char *, int);
 int pidwait (pid_t, int);
 int pidstatus (int, FILE *, char *);
 char *pluspath(char *);
-void print_sw (const char *, const struct swit *, char *, FILE *);
 void print_version (char *);
 void push (void);
 char *r1bindex(char *, int) PURE;
index d951af4..e36bb11 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "error.h"
 
 
index 97d140c..15d84eb 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "print_help.h"
 
 
index 42df6d2..7e11a92 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 
 
 void
diff --git a/sbr/print_sw.h b/sbr/print_sw.h
new file mode 100644 (file)
index 0000000..3a5ceb0
--- /dev/null
@@ -0,0 +1,7 @@
+/* print_sw.h -- print switches
+ *
+ * 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 print_sw(const char *, const struct swit *, char *, FILE *);
index af44432..d66bd25 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "h/signals.h"
 #include <setjmp.h>
 
index a2c3621..7fad535 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 
 #ifdef READLINE_SUPPORT
 #include <readline/readline.h>