]> diplodocus.org Git - nmh/commitdiff
folder_realloc.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 13:42:45 +0000 (13:42 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:29 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/folder_addmsg.c
sbr/folder_pack.c
sbr/folder_realloc.c
sbr/folder_realloc.h [new file with mode: 0644]
sbr/m_convert.c
sbr/m_draft.c
uip/burst.c
uip/inc.c
uip/mhpath.c

index 229c08c..2975670 100644 (file)
@@ -379,6 +379,7 @@ noinst_HEADERS = \
     sbr/folder_delmsgs.h \
     sbr/folder_free.h \
     sbr/folder_pack.h \
+    sbr/folder_realloc.h \
     sbr/lock_file.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
index caade24..3db5f0d 100644 (file)
@@ -87,8 +87,6 @@ int fdcompare (int, int);
  */
 struct msgs *folder_read (char *name, int lockflag);
 
-struct msgs *folder_realloc (struct msgs *, int, int);
-
 /*
  * 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 5de3ccd..f78df87 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_realloc.h"
 #include "folder_addmsg.h"
 #include "error.h"
 #include <fcntl.h>
index 8cacdd7..f2a40a6 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_realloc.h"
 #include "folder_pack.h"
 #include "error.h"
 
index 69461ed..a8dd3a9 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_realloc.h"
 #include "error.h"
 #include "h/utils.h"
 
diff --git a/sbr/folder_realloc.h b/sbr/folder_realloc.h
new file mode 100644 (file)
index 0000000..aee3f50
--- /dev/null
@@ -0,0 +1,7 @@
+/* folder_realloc.h -- realloc a folder/msgs structure
+ *
+ * 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. */
+
+struct msgs *folder_realloc(struct msgs *, int, int);
index 430748b..fc198e8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_realloc.h"
 #include "context_find.h"
 #include "seq_getnum.h"
 #include "error.h"
index 084c6a3..9798758 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_realloc.h"
 #include "folder_free.h"
 #include "context_find.h"
 #include "path.h"
index c0541e8..a459c5c 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_realloc.h"
 #include "sbr/folder_free.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"
index dd5f84d..de0c799 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -31,6 +31,7 @@
 #endif
 
 #include "h/mh.h"
+#include "sbr/folder_realloc.h"
 #include "sbr/folder_free.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"
index 0ce3a20..9155b57 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_realloc.h"
 #include "sbr/folder_free.h"
 #include "sbr/context_save.h"
 #include "sbr/context_find.h"