[balsa/74-quote-wrapped-lines] Move declaration of libbalsa_wrap_quoted_line()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/74-quote-wrapped-lines] Move declaration of libbalsa_wrap_quoted_line()
- Date: Mon, 11 Apr 2022 00:30:18 +0000 (UTC)
commit f6229541067d75bd74eeae6d103bebeeb442d493
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Apr 10 20:21:42 2022 -0400
Move declaration of libbalsa_wrap_quoted_line()
from libbalsa/mime.h to libbalsa/misc.h.
It belongs in libbalsa/misc.c, but defining it there puts it in misc.o,
and linking balsa-ab drags in misc.o, which then pulls in mime.o to
satisfy the reference to libbalsa_match_regex, and it goes downhill
from there.
So we define it in mime.c, to keep misc.o clean, but declare it in
misc.h, with the other wrapping functions.
libbalsa/mime.h | 3 ---
libbalsa/misc.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libbalsa/mime.h b/libbalsa/mime.h
index c45bad5f8..7e93d9385 100644
--- a/libbalsa/mime.h
+++ b/libbalsa/mime.h
@@ -34,8 +34,5 @@ GString *process_mime_part(LibBalsaMessage * message,
GString *content2reply(LibBalsaMessageBody *root,
gchar * reply_prefix_str, gint llen,
gboolean ignore_html, gboolean flow);
-char *libbalsa_wrap_quoted_string(const char *str,
- unsigned width,
- GRegex *quote_regex);
#endif /* __LIBBALSA_MIME_H__ */
diff --git a/libbalsa/misc.h b/libbalsa/misc.h
index bbc7f9dbe..34776f80e 100644
--- a/libbalsa/misc.h
+++ b/libbalsa/misc.h
@@ -97,6 +97,9 @@ gchar *libbalsa_get_domainname(void);
gboolean libbalsa_find_word(const gchar * word, const gchar * str);
void libbalsa_wrap_string(gchar * str, int width);
+char *libbalsa_wrap_quoted_string(const char *str,
+ unsigned width,
+ GRegex *quote_regex);
GString *libbalsa_process_text_rfc2646(gchar * par, gint width,
gboolean from_screen,
gboolean to_screen, gboolean quote,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]