]> diplodocus.org Git - nmh/commitdiff
concat.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 00:23:44 +0000 (00:23 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:35 +0000 (12:25 +0000)
36 files changed:
Makefile.am
h/prototypes.h
sbr/concat.c
sbr/concat.h [new file with mode: 0644]
sbr/context_find.c
sbr/context_read.c
sbr/crawl_folders.c
sbr/credentials.c
sbr/m_mktemp.c
sbr/mime_type.c
sbr/oauth.c
sbr/oauth_prof.c
sbr/utils.c
uip/aliasbr.c
uip/folder.c
uip/inc.c
uip/install-mh.c
uip/mhbuildsbr.c
uip/mhfixmsg.c
uip/mhical.c
uip/mhlogin.c
uip/mhlsbr.c
uip/mhmisc.c
uip/mhparse.c
uip/mhshowsbr.c
uip/mhstoresbr.c
uip/new.c
uip/packf.c
uip/post.c
uip/repl.c
uip/replsbr.c
uip/rmf.c
uip/send.c
uip/sendsbr.c
uip/viamail.c
uip/whatnowsbr.c

index 8926d76..3db6bfa 100644 (file)
@@ -370,6 +370,7 @@ noinst_HEADERS = \
     sbr/check_charset.h \
     sbr/client.h \
     sbr/closefds.h \
+    sbr/concat.h \
     sbr/context_del.h \
     sbr/context_find.h \
     sbr/context_foil.h \
index 2e7bb32..970cd21 100644 (file)
@@ -15,8 +15,6 @@ char *etcpath(char *) NONNULL(1);
 
 struct msgs_array;
 
-char *concat (const char *, ...) ENDNULL;
-
 /*
  * Print null-terminated PROMPT to and flush standard output.  Read answers from
  * standard input until one matches an entry in SWITCHES.  When one matches,
index 262b93f..b99f0c0 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "h/utils.h"
 
 
diff --git a/sbr/concat.h b/sbr/concat.h
new file mode 100644 (file)
index 0000000..83605c1
--- /dev/null
@@ -0,0 +1,8 @@
+/* concat.h -- concatenate a variable number (minimum of 1)
+ *             of strings in managed memory
+ *
+ * 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 *concat(const char *, ...) ENDNULL;
index 05e368b..48ab8d0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "context_find.h"
 
 
index fe64fc1..b207201 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "context_read.h"
 #include "context_find.h"
 #include "readconfig.h"
index 9f1327c..23152d0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "error.h"
 #include "h/crawl_folders.h"
 #include "h/utils.h"
index b7eda96..910e097 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "ruserpass.h"
 #include "credentials.h"
 #include "context_find.h"
index 1ec94c6..228de43 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "r1bindex.h"
 #include "h/utils.h"
 #include "h/signals.h"
index 91c6c39..ab2a9a0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "readconfig.h"
 #include "error.h"
 #include "h/utils.h"
index 195b9b8..2ed2b77 100755 (executable)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "trimcpy.h"
 #include "getcpy.h"
 #include "error.h"
index 4d91b8b..13e5b97 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "getcpy.h"
 #include "context_find.h"
 
index 9c4b9fd..f7f006a 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "concat.h"
 #include "r1bindex.h"
 #include "context_foil.h"
 #include "context_replace.h"
index 40c9ca1..22252d7 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/vfgets.h"
 #include "sbr/getcpy.h"
 #include "h/aliasbr.h"
index 9cfa386..9072246 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setprev.h"
 #include "sbr/seq_setcur.h"
 #include "sbr/seq_save.h"
index 8e9416c..1066801 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -31,6 +31,7 @@
 #endif
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setunseen.h"
 #include "sbr/seq_setcur.h"
 #include "sbr/seq_save.h"
index 8983ed8..ee05102 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"
index e7b9c50..48b039e 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/r1bindex.h"
 #include "sbr/encode_rfc2047.h"
 #include "sbr/copyip.h"
index 292e912..aabe1c5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setprev.h"
 #include "sbr/seq_setcur.h"
 #include "sbr/seq_save.h"
index 56c920b..b2cd5b0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/ambigsw.h"
 #include "sbr/path.h"
index 3356add..ba48f4c 100644 (file)
@@ -10,6 +10,7 @@
 #include <string.h>
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/ambigsw.h"
 #include "sbr/print_version.h"
index b3d650b..cfd8074 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/r1bindex.h"
 #include "sbr/snprintb.h"
index 24fb9b2..fcec3c3 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/error.h"
 #include "h/mime.h"
 #include "h/mhparse.h"
index 9b72d91..ca9d303 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/r1bindex.h"
 #include "sbr/ruserpass.h"
 #include "sbr/fmt_rfc2047.h"
index 2bac9d0..909506e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/trimcpy.h"
 #include "sbr/check_charset.h"
 #include "sbr/getcpy.h"
index 28e0454..4cdd3d5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/r1bindex.h"
 #include "sbr/uprf.h"
index 9d04fc2..03d89a3 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -12,6 +12,7 @@
 #include <sys/types.h>
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/r1bindex.h"
 #include "sbr/trimcpy.h"
index 65a47a7..31079a8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setprev.h"
 #include "sbr/seq_setcur.h"
 #include "sbr/seq_save.h"
index 69cb644..2a2d814 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/cpydata.h"
 #include "sbr/cpydgst.h"
index 2f8492b..8ee26b8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setprev.h"
 #include "sbr/seq_setcur.h"
 #include "sbr/seq_save.h"
index 1a0c919..9308897 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/closefds.h"
 #include "sbr/uprf.h"
 #include "sbr/escape_addresses.h"
index 1347378..d492df1 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/remdir.h"
 #include "sbr/ssequal.h"
index 86bae68..b9d3bcf 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/seq_setprev.h"
 #include "sbr/seq_save.h"
 #include "sbr/showfile.h"
index 5a74365..47df948 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/cpydgst.h"
 #include "sbr/trimcpy.h"
 #include "sbr/uprf.h"
index 3d8ee6b..6e889b6 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/smatch.h"
 #include "sbr/context_find.h"
 #include "sbr/ambigsw.h"
index ca9365d..8a73536 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/concat.h"
 #include "sbr/showfile.h"
 #include "sbr/smatch.h"
 #include "sbr/r1bindex.h"