]> diplodocus.org Git - nmh/commitdiff
m_gmprot.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:02:28 +0000 (13:02 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:02:28 +0000 (13:02 +0000)
28 files changed:
Makefile.am
h/prototypes.h
sbr/m_gmprot.c
sbr/m_gmprot.h [new file with mode: 0644]
uip/annosbr.c
uip/burst.c
uip/comp.c
uip/dist.c
uip/distsbr.c
uip/forw.c
uip/inc.c
uip/mhbuildsbr.c
uip/mhcachesbr.c
uip/mhfixmsg.c
uip/mhlist.c
uip/mhn.c
uip/mhparse.c
uip/mhshow.c
uip/mhstore.c
uip/packf.c
uip/prompter.c
uip/rcvdist.c
uip/rcvpack.c
uip/rcvstore.c
uip/replsbr.c
uip/scansbr.c
uip/slocal.c
uip/viamail.c

index 52cdfdd..25f212c 100644 (file)
@@ -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 \
index 12abb1d..3cec8ae 100644 (file)
@@ -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);
index c33b3ae..3f5405f 100644 (file)
@@ -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 (file)
index 0000000..ca49eb8
--- /dev/null
@@ -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;
index 9f05b24..6cbf32a 100644 (file)
@@ -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"
index 5048e4d..5503e5e 100644 (file)
@@ -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"
index 34d46bb..ae32f69 100644 (file)
@@ -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"
index 0dc2cca..0302b93 100644 (file)
@@ -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"
index b86e5a0..d3e7d7d 100644 (file)
@@ -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"
index 2886d05..8646221 100644 (file)
@@ -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"
index 3692647..1a3b28b 100644 (file)
--- 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"
index e996cc0..c7b969c 100644 (file)
@@ -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"
index 1cdd6fd..942c3f0 100644 (file)
@@ -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"
index 29486af..3516070 100644 (file)
@@ -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"
index ec6c5a8..ea9d8de 100644 (file)
@@ -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"
index c6f861a..c576eeb 100644 (file)
--- 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"
index 54bef78..c1eec40 100644 (file)
@@ -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"
index 9367f00..1c6bdd8 100644 (file)
@@ -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"
index a1837bf..21bf0d1 100644 (file)
@@ -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"
index 727e00d..c61d655 100644 (file)
@@ -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"
index 51be893..de8b67a 100644 (file)
@@ -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"
index 5436e5d..66211f8 100644 (file)
@@ -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"
index a6efb62..1bcef7c 100644 (file)
@@ -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"
index 2484aaa..58dba16 100644 (file)
@@ -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"
index 089c48b..9c1cd8e 100644 (file)
@@ -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"
index 6bbe170..fc66c82 100644 (file)
@@ -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"
index f332edd..66685b4 100644 (file)
@@ -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"
index 8856702..30a6a28 100644 (file)
@@ -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"