]> 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 52332b0d1520b1b0e6ca20e382a9ad68c6e736b1..3f32273fbf9cf0e715587cd7b787638d66092022 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 bd68e35a30813079ee54d53247590b48cf0137dd..1cbc6ea1e7a5fc54900d6dacd6ecac1fd50ae351 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 d951af45574501192f7a080f7d809da861189db9..e36bb11a246fe3720a5230589a55283ee6cb02a3 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "error.h"
 
 
index 97d140ca68b312aa2cb3dd9cd38930b21573ef8a..15d84eb2b9cffccbd584238ed8c09fa013d6579b 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "print_help.h"
 
 
index 42df6d22110c3a94880ba660795dc6fa832ba5be..7e11a92d77f8e41ed063cc3cb22576ed5e82c6eb 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 af44432cf8474778d9f021652c22bc10f426b247..d66bd254a85e6241104076401569352ab0a15228 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 #include "h/signals.h"
 #include <setjmp.h>
 
index a2c36218efc3bfdd2ab6846a16ccb86bbd584e49..7fad53543fe3828636bdcde62345609d79128b61 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "print_sw.h"
 
 #ifdef READLINE_SUPPORT
 #include <readline/readline.h>