]> diplodocus.org Git - nmh/commitdiff
h/utils.h: Move in nmh_init() prototype from h/prototypes.h.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 17:39:45 +0000 (18:39 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 17:39:45 +0000 (18:39 +0100)
13 files changed:
h/prototypes.h
h/utils.h
uip/fmtdump.c
uip/mhl.c
uip/mhparam.c
uip/mkstemp.c
uip/msgchk.c
uip/prompter.c
uip/rcvpack.c
uip/rcvstore.c
uip/rcvtty.c
uip/viamail.c
uip/whatnow.c

index 28d21f0..9f8dc2e 100644 (file)
@@ -543,14 +543,3 @@ const char *nmh_cred_get_password(nmh_creds_t creds);
  * Free an allocated nmh_creds structure.
  */
 void nmh_credentials_free(nmh_creds_t creds);
-
-/*
- * program initialization
- *
- * argv0        - argv[0], presumably the program name
- * read_context - 0: don't read context
- *              - 1: read context, check nmh version, and issue warning message
- *                   if non-existent or old
- *              - 2: read context, don't check nmh version
- */
-int nmh_init(const char *argv0, int read_context);
index c5991f4..56dec30 100644 (file)
--- a/h/utils.h
+++ b/h/utils.h
@@ -98,6 +98,16 @@ int contains8bit(const char *start, const char *end);
  */
 int scan_input (int fd, int *eightbit);
 
+/*
+ * program initialization
+ *
+ * argv0        - argv[0], presumably the program name
+ * read_context - 0: don't read context
+ *              - 1: read context, check nmh version, and issue warning message
+ *                   if non-existent or old
+ *              - 2: read context, don't check nmh version
+ */
+int nmh_init(const char *argv0, int read_context);
 
 /*
  * Compares prior version of nmh with current version.  Returns 1
index 12e2391..6a6ef7c 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/fmt_scan.h>
 #include <h/fmt_compile.h>
 #include <h/scansbr.h>
+#include <h/utils.h>
 
 #define FMTDUMP_SWITCHES \
     X("form formatfile", 0, FORMSW) \
index 59c233d..ea7a244 100644 (file)
--- a/uip/mhl.c
+++ b/uip/mhl.c
@@ -6,6 +6,7 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 
 int
index 1498884..17705bc 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <h/mh.h>
 #include <h/mts.h>
+#include <h/utils.h>
 
 #define MHPARAM_SWITCHES \
     X("components", 0, COMPSW) \
index ac34c75..b7acbb1 100644 (file)
 #endif /* HAVE_CONFIG_H */
 #include <unistd.h>
 #include <stdlib.h>
+#include <stdbool.h>
 #include <string.h>
 #include <stdio.h>
 
+#include <h/utils.h>
+
 #if ! defined HAVE_MKSTEMPS
 #   define HAVE_MKSTEMPS 0
 #endif /* ! HAVE_MKSTEMPS */
index 44d9352..3bc7f23 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/mts.h>
 #include <h/tws.h>
+#include <h/utils.h>
 #include <pwd.h>
 
 #include <h/popsbr.h>
index 0532c21..cdab14e 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/signals.h>
+#include <h/utils.h>
 #include "../sbr/m_mktemp.h"
 #include <setjmp.h>
 
index 9215b00..6235e5e 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/rcvmail.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include <h/utils.h>
 
 #define RCVPACK_SWITCHES \
     X("mbox", 0, MBOXSW) \
index bb07856..7e22d0a 100644 (file)
@@ -9,6 +9,7 @@
 #include <fcntl.h>
 #include <h/signals.h>
 #include <h/mts.h>
+#include <h/utils.h>
 #include "../sbr/m_mktemp.h"
 
 #define RCVSTORE_SWITCHES \
index 3b83708..0c717b4 100644 (file)
@@ -17,6 +17,7 @@
 #include <h/scansbr.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include <h/utils.h>
 #include "../sbr/m_mktemp.h"
 #include <fcntl.h>
 
index e7af770..3c92f5f 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/tws.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
+#include <h/utils.h>
 #include "../sbr/m_mktemp.h"
 
 #define VIAMAIL_SWITCHES \
index 4fffddb..86a17f9 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 
 int