]> diplodocus.org Git - nmh/commitdiff
arglist.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 2 Nov 2017 17:59:04 +0000 (17:59 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:24 +0000 (12:25 +0000)
22 files changed:
Makefile.am
h/prototypes.h
sbr/arglist.c
sbr/arglist.h [new file with mode: 0644]
sbr/ext_hook.c
sbr/folder_delmsgs.c
sbr/m_popen.c
sbr/refile.c
sbr/showfile.c
uip/forw.c
uip/mhlsbr.c
uip/mhparse.c
uip/mhshowsbr.c
uip/post.c
uip/rcvdist.c
uip/refile.c
uip/replsbr.c
uip/send.c
uip/sendsbr.c
uip/show.c
uip/viamail.c
uip/whatnowsbr.c

index bce4eb2..20a5527 100644 (file)
@@ -362,6 +362,7 @@ noinst_HEADERS = \
     h/tws.h \
     h/utils.h \
     mts/smtp/smtp.h \
     h/tws.h \
     h/utils.h \
     mts/smtp/smtp.h \
+    sbr/arglist.h \
     sbr/base64.h \
     sbr/ctype-checked.h \
     sbr/error.h \
     sbr/base64.h \
     sbr/ctype-checked.h \
     sbr/error.h \
index c1c5484..9e82ddf 100644 (file)
@@ -16,10 +16,6 @@ char *etcpath(char *) NONNULL(1);
 struct msgs_array;
 
 void add_profile_entry (const char *, const char *);
 struct msgs_array;
 
 void add_profile_entry (const char *, const char *);
-char **argsplit (char *, char **, int *) NONNULL(1, 2);
-void argsplit_msgarg (struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
-void argsplit_insert (struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
-void arglist_free (char *, char **);
 void ambigsw (const char *, const struct swit *) NONNULL(1, 2);
 int atooi(char *) NONNULL(1) PURE;
 char **brkstring (char *, char *, char *) NONNULL(1);
 void ambigsw (const char *, const struct swit *) NONNULL(1, 2);
 int atooi(char *) NONNULL(1) PURE;
 char **brkstring (char *, char *, char *) NONNULL(1);
index 75c4882..0dde2c8 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "h/mh.h"
 #include "error.h"
 
 #include "h/mh.h"
 #include "error.h"
+#include "arglist.h"
 #include "h/utils.h"
 
 /*
 #include "h/utils.h"
 
 /*
diff --git a/sbr/arglist.h b/sbr/arglist.h
new file mode 100644 (file)
index 0000000..29f9554
--- /dev/null
@@ -0,0 +1,10 @@
+/* arglist.h -- Routines for handling argument lists for execvp() and friends
+ *
+ * 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. */
+
+char **argsplit(char *, char **, int *) NONNULL(1, 2);
+void arglist_free(char *, char **);
+void argsplit_msgarg(struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
+void argsplit_insert(struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
index 8a4a91b..b8892e9 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "arglist.h"
 #include "error.h"
 
 int
 #include "error.h"
 
 int
index 2ef8859..f9d7f59 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "arglist.h"
 #include "error.h"
 #include "h/utils.h"
 #include "m_mktemp.h"
 #include "error.h"
 #include "h/utils.h"
 #include "m_mktemp.h"
index db51f4b..ac36e6b 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "arglist.h"
 #include "error.h"
 #include "h/signals.h"
 #include "m_popen.h"
 #include "error.h"
 #include "h/signals.h"
 #include "m_popen.h"
index 4e37591..ce31273 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "arglist.h"
 #include "error.h"
 #include "h/utils.h"
 
 #include "error.h"
 #include "h/utils.h"
 
index da8df2f..1ce6372 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "arglist.h"
 #include "error.h"
 
 
 #include "error.h"
 
 
index 939832a..80fa7f4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/tws.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/tws.h"
index c4f452b..4a54f71 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/signals.h"
 #include "h/addrsbr.h"
 #include "sbr/error.h"
 #include "h/signals.h"
 #include "h/addrsbr.h"
index fc863c3..c304242 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/md5.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/md5.h"
index 071ff8a..fca4410 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/signals.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/signals.h"
index 75a7749..6fbccdf 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/signals.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/signals.h"
index 6436854..9f52a4b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/rcvmail.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/rcvmail.h"
index cebc5c9..58de202 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/done.h"
 #include "h/utils.h"
 #include "sbr/error.h"
 #include "h/done.h"
 #include "h/utils.h"
index cca19c1..0899117 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/addrsbr.h"
 #include "h/fmt_scan.h"
 #include "sbr/error.h"
 #include "h/addrsbr.h"
 #include "h/fmt_scan.h"
index 02c5cb8..3d559ff 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/done.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/done.h"
index 5706616..ca03877 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/fmt_compile.h"
 #include "sbr/error.h"
 #include "h/fmt_scan.h"
 #include "h/fmt_compile.h"
index 51793fc..7573432 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include "h/mime.h"
 #include "h/done.h"
 #include "sbr/error.h"
 #include "h/mime.h"
 #include "h/done.h"
index 58772dc..37066a4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/md5.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/md5.h"
index 0127914..07bd22b 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/arglist.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/mime.h"
 #include "sbr/error.h"
 #include <fcntl.h>
 #include "h/mime.h"