]> diplodocus.org Git - nmh/commitdiff
folder_pack.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 00:18:51 +0000 (00:18 +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_pack.c
sbr/folder_pack.h [new file with mode: 0644]
uip/folder.c

index 93db797..229c08c 100644 (file)
@@ -378,6 +378,7 @@ noinst_HEADERS = \
     sbr/folder_addmsg.h \
     sbr/folder_delmsgs.h \
     sbr/folder_free.h \
+    sbr/folder_pack.h \
     sbr/lock_file.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
index c3fef8a..caade24 100644 (file)
@@ -74,7 +74,6 @@ void escape_display_name (char *, size_t);
 void escape_local_part (char *, size_t);
 int ext_hook(char *, char *, char *);
 int fdcompare (int, int);
-int folder_pack (struct msgs **, int);
 
 /*
  * Read a MH folder structure and return an allocated "struct msgs"
index ee2a2f9..8cacdd7 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_pack.h"
 #include "error.h"
 
 /*
diff --git a/sbr/folder_pack.h b/sbr/folder_pack.h
new file mode 100644 (file)
index 0000000..f9a8e1a
--- /dev/null
@@ -0,0 +1,8 @@
+/* folder_pack.h -- pack (renumber) the messages in a folder
+ *               -- into a contiguous range from 1 to n.
+ *
+ * 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 folder_pack(struct msgs **, int);
index d6e2f3d..f30f3fc 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_pack.h"
 #include "sbr/folder_free.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"