From dd6bfc058da415e30995eeea116c65861671e2aa Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 11 Nov 2017 13:42:45 +0000 Subject: [PATCH] folder_realloc.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/folder_addmsg.c | 1 + sbr/folder_pack.c | 1 + sbr/folder_realloc.c | 1 + sbr/folder_realloc.h | 7 +++++++ sbr/m_convert.c | 1 + sbr/m_draft.c | 1 + uip/burst.c | 1 + uip/inc.c | 1 + uip/mhpath.c | 1 + 11 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 sbr/folder_realloc.h diff --git a/Makefile.am b/Makefile.am index 229c08c5..29756707 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index caade24a..3db5f0d7 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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, diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index 5de3ccd0..f78df87c 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "folder_realloc.h" #include "folder_addmsg.h" #include "error.h" #include diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 8cacdd78..f2a40a60 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "folder_realloc.h" #include "folder_pack.h" #include "error.h" diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 69461eda..a8dd3a94 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -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 index 00000000..aee3f50e --- /dev/null +++ b/sbr/folder_realloc.h @@ -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); diff --git a/sbr/m_convert.c b/sbr/m_convert.c index 430748b1..fc198e88 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "folder_realloc.h" #include "context_find.h" #include "seq_getnum.h" #include "error.h" diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 084c6a32..9798758f 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "folder_realloc.h" #include "folder_free.h" #include "context_find.h" #include "path.h" diff --git a/uip/burst.c b/uip/burst.c index c0541e8d..a459c5c2 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -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" diff --git a/uip/inc.c b/uip/inc.c index dd5f84d2..de0c7993 100644 --- 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" diff --git a/uip/mhpath.c b/uip/mhpath.c index 0ce3a20d..9155b575 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -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" -- 2.56.0