]> diplodocus.org Git - nmh/commitdiff
m_draft.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 14:49:08 +0000 (14:49 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:30 +0000 (12:25 +0000)
14 files changed:
Makefile.am
h/prototypes.h
sbr/m_draft.c
sbr/m_draft.h [new file with mode: 0644]
uip/anno.c
uip/comp.c
uip/dist.c
uip/forw.c
uip/refile.c
uip/repl.c
uip/send.c
uip/show.c
uip/whatnowsbr.c
uip/whom.c

index d32f5fe..a467d25 100644 (file)
@@ -390,6 +390,7 @@ noinst_HEADERS = \
     sbr/m_atoi.h \
     sbr/m_backup.h \
     sbr/m_convert.h \
     sbr/m_atoi.h \
     sbr/m_backup.h \
     sbr/m_convert.h \
+    sbr/m_draft.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
     sbr/m_popen.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
     sbr/m_popen.h \
index a379386..f12bf37 100644 (file)
@@ -113,8 +113,6 @@ char *get_charset(void);
 /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */
 char *getcpy(const char *str);
 
 /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */
 char *getcpy(const char *str);
 
-char *m_draft (char *, char *, int, int *);
-
 m_getfld_state_t m_getfld_state_init(FILE *iob);
 void m_getfld_state_reset (m_getfld_state_t *);
 void m_getfld_state_destroy (m_getfld_state_t *);
 m_getfld_state_t m_getfld_state_init(FILE *iob);
 void m_getfld_state_reset (m_getfld_state_t *);
 void m_getfld_state_destroy (m_getfld_state_t *);
index 1a4aab5..6e662a1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "m_draft.h"
 #include "m_convert.h"
 #include "folder_read.h"
 #include "folder_realloc.h"
 #include "m_convert.h"
 #include "folder_read.h"
 #include "folder_realloc.h"
diff --git a/sbr/m_draft.h b/sbr/m_draft.h
new file mode 100644 (file)
index 0000000..7d46223
--- /dev/null
@@ -0,0 +1,8 @@
+/* m_draft.h -- construct the name of a draft message
+ *
+ * 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. */
+
+/* Does not return NULL. */
+char *m_draft(char *, char *, int, int *);
index c0e98b2..59a5b99 100644 (file)
@@ -42,6 +42,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index adffcbb..027ba3d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/fdcompare.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/fdcompare.h"
index 8b05d9e..1aa5727 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index fa56b02..84c94c1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index 8cf5902..eb63c9a 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index 6d4e125..198b3f0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index f19ecba..0a893a1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/folder_read.h"
 #include "sbr/context_save.h"
 #include "sbr/m_convert.h"
 #include "sbr/folder_read.h"
 #include "sbr/context_save.h"
index 697dbd8..7753c83 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
 #include "sbr/m_convert.h"
 #include "sbr/getfolder.h"
 #include "sbr/folder_read.h"
index 2addfe7..c4549f1 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/m_backup.h"
 #include "sbr/geteditor.h"
 #include "sbr/context_save.h"
 #include "sbr/m_backup.h"
 #include "sbr/geteditor.h"
 #include "sbr/context_save.h"
index 56ae6b4..c2d1a30 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/m_draft.h"
 #include "sbr/context_find.h"
 #include "sbr/brkstring.h"
 #include "sbr/ambigsw.h"
 #include "sbr/context_find.h"
 #include "sbr/brkstring.h"
 #include "sbr/ambigsw.h"