]> diplodocus.org Git - nmh/commitdiff
sendsbr.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:44:34 +0000 (13:44 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 13:44:34 +0000 (13:44 +0000)
Makefile.am
h/prototypes.h
uip/send.c
uip/sendsbr.c
uip/sendsbr.h [new file with mode: 0644]
uip/viamail.c
uip/whatnowsbr.c

index bf7f60c..9a12006 100644 (file)
@@ -464,6 +464,7 @@ noinst_HEADERS = \
     uip/mhshowsbr.h \
     uip/replsbr.h \
     uip/scansbr.h \
+    uip/sendsbr.h \
     #
 
 ##
index 8ee4514..b3cd49f 100644 (file)
@@ -21,7 +21,6 @@ int pidwait (pid_t, int);
  * prototypes for some routines in uip
  */
 int mhlsbr(int, char **, FILE *(*)(char *));
-int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
 int what_now (char *, int, int, char *, char *,
        int, struct msgs *, char *, int, char *, int);
 int WhatNow(int, char **) NORETURN;
index 6c3dc93..f29bb45 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sendsbr.h"
 #include "sbr/m_name.h"
 #include "sbr/getarguments.h"
 #include "sbr/read_switch_multiword.h"
index 1e0f29c..a044a62 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sendsbr.h"
 #include "distsbr.h"
 #include "annosbr.h"
 #include "sbr/m_name.h"
diff --git a/uip/sendsbr.h b/uip/sendsbr.h
new file mode 100644 (file)
index 0000000..581ffc2
--- /dev/null
@@ -0,0 +1,7 @@
+/* sendsbr.h -- routines to help WhatNow/Send along
+ *
+ * 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 sendsbr(char **, int, char *, char *, struct stat *, int, const char *);
index 30a6a28..7ec3808 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sendsbr.h"
 #include "sbr/m_gmprot.h"
 #include "sbr/getarguments.h"
 #include "sbr/concat.h"
index be3bc24..4363b89 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
+#include "sendsbr.h"
 #include "annosbr.h"
 #include "sbr/m_getfld.h"
 #include "sbr/getarguments.h"