From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:02:28 +0000 (+0000) Subject: m_gmprot.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b54c3cca7632b31faf33e57f35631e9589551e1a m_gmprot.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 52cdfdd9..25f212cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -406,6 +406,7 @@ noinst_HEADERS = \ sbr/m_convert.h \ sbr/m_draft.h \ sbr/m_getfld.h \ + sbr/m_gmprot.h \ sbr/m_maildir.h \ sbr/m_mktemp.h \ sbr/m_popen.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 12abb1d2..3cec8aea 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -15,7 +15,6 @@ char *etcpath(char *) NONNULL(1); struct msgs_array; -int m_gmprot (void) PURE; char *m_name (int); int pidwait (pid_t, int); diff --git a/sbr/m_gmprot.c b/sbr/m_gmprot.c index c33b3aef..3f5405f2 100644 --- a/sbr/m_gmprot.c +++ b/sbr/m_gmprot.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "m_gmprot.h" #include "context_find.h" #include "atooi.h" diff --git a/sbr/m_gmprot.h b/sbr/m_gmprot.h new file mode 100644 index 00000000..ca49eb83 --- /dev/null +++ b/sbr/m_gmprot.h @@ -0,0 +1,7 @@ +/* m_gmprot.h -- return the msg-protect value + * + * 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. */ + +int m_gmprot(void) PURE; diff --git a/uip/annosbr.c b/uip/annosbr.c index 9f05b248..6cbf32a9 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/cpydata.h" #include "sbr/m_backup.h" #include "sbr/error.h" diff --git a/uip/burst.c b/uip/burst.c index 5048e4db..5503e5e3 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" diff --git a/uip/comp.c b/uip/comp.c index 34d46bb2..ae32f695 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/read_switch_multiword.h" #include "sbr/seq_setprev.h" diff --git a/uip/dist.c b/uip/dist.c index 0dc2cca8..0302b93b 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/read_switch_multiword.h" #include "sbr/seq_setprev.h" diff --git a/uip/distsbr.c b/uip/distsbr.c index b86e5a02..d3e7d7d0 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/cpydata.h" #include "sbr/uprf.h" diff --git a/uip/forw.c b/uip/forw.c index 2886d052..86462216 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/read_switch_multiword.h" #include "sbr/seq_setprev.h" diff --git a/uip/inc.c b/uip/inc.c index 36926479..1a3b28b1 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/concat.h" #include "sbr/seq_setunseen.h" diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index e996cc03..c7b969c7 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/concat.h" #include "sbr/r1bindex.h" diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index 1cdd6fdb..942c3f01 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/read_yes_or_no_if_tty.h" #include "sbr/trimcpy.h" diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 29486af8..35160708 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" #include "sbr/concat.h" diff --git a/uip/mhlist.c b/uip/mhlist.c index ec6c5a83..ea9d8de4 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" diff --git a/uip/mhn.c b/uip/mhn.c index c6f861a0..c576eeb5 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" diff --git a/uip/mhparse.c b/uip/mhparse.c index 54bef78f..c1eec406 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/read_yes_or_no_if_tty.h" #include "sbr/concat.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index 9367f008..1c6bdd8d 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setunseen.h" #include "sbr/seq_setprev.h" diff --git a/uip/mhstore.c b/uip/mhstore.c index a1837bfd..21bf0d18 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setprev.h" #include "sbr/seq_setcur.h" diff --git a/uip/packf.c b/uip/packf.c index 727e00df..c61d6552 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/read_yes_or_no_if_tty.h" #include "sbr/concat.h" diff --git a/uip/prompter.c b/uip/prompter.c index 51be8937..de8b67a8 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" #include "sbr/smatch.h" diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 5436e5d9..66211f80 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" #include "sbr/smatch.h" diff --git a/uip/rcvpack.c b/uip/rcvpack.c index a6efb625..1bcef7c3 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/smatch.h" #include "sbr/ambigsw.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 2484aaa9..58dba169 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/seq_setunseen.h" #include "sbr/seq_save.h" diff --git a/uip/replsbr.c b/uip/replsbr.c index 089c48b3..9c1cd8ed 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/read_switch.h" #include "sbr/concat.h" diff --git a/uip/scansbr.c b/uip/scansbr.c index 6bbe170f..fc66c829 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getcpy.h" #include "sbr/error.h" diff --git a/uip/slocal.c b/uip/slocal.c index f332eddc..66685b44 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -20,6 +20,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" #include "sbr/smatch.h" diff --git a/uip/viamail.c b/uip/viamail.c index 88567023..30a6a28b 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/concat.h" #include "sbr/smatch.h"