From: Ralph Corderoy Date: Thu, 2 Nov 2017 23:16:21 +0000 (+0000) Subject: print_sw.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b3d4a4452c332fc3550db3fbdf9e02027b41e985?ds=sidebyside;hp=85158b5904b245542dc475445a6a478509389f8c print_sw.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 52332b0d..3f32273f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index bd68e35a..1cbc6ea1 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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; diff --git a/sbr/ambigsw.c b/sbr/ambigsw.c index d951af45..e36bb11a 100644 --- a/sbr/ambigsw.c +++ b/sbr/ambigsw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "error.h" diff --git a/sbr/print_help.c b/sbr/print_help.c index 97d140ca..15d84eb2 100644 --- a/sbr/print_help.c +++ b/sbr/print_help.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "print_help.h" diff --git a/sbr/print_sw.c b/sbr/print_sw.c index 42df6d22..7e11a92d 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -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 index 00000000..3a5ceb0a --- /dev/null +++ b/sbr/print_sw.h @@ -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 *); diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index af44432c..d66bd254 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "h/signals.h" #include diff --git a/sbr/read_switch_multiword_via_readline.c b/sbr/read_switch_multiword_via_readline.c index a2c36218..7fad5354 100644 --- a/sbr/read_switch_multiword_via_readline.c +++ b/sbr/read_switch_multiword_via_readline.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #ifdef READLINE_SUPPORT #include