From bc084fef11c47a2d290307464c6c672428cd1c2e Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 4 Dec 2018 16:57:13 +0800 Subject: pango/break.c: Declare variables at top of block This ensures everything build with pre-C89 compilers. --- pango/break.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pango/break.c b/pango/break.c index 558df7e6..cdac9c27 100644 --- a/pango/break.c +++ b/pango/break.c @@ -302,6 +302,9 @@ pango_default_break (const gchar *text, gboolean is_word_boundary; gboolean is_sentence_boundary; + /* Emoji extended pictographics */ + gboolean is_Extended_Pictographic; + wc = next_wc; break_type = next_break_type; @@ -369,7 +372,7 @@ pango_default_break (const gchar *text, /* Just few spaces have variable width. So explicitly mark them. */ attrs[i].is_expandable_space = (0x0020 == wc || 0x00A0 == wc); - gboolean is_Extended_Pictographic = + is_Extended_Pictographic = _pango_Is_Emoji_Extended_Pictographic (wc); -- cgit v1.2.1