From: Chun-wei Fan <fanchunwei@src.gnome.org> Date: Tue, 27 Feb 2018 04:30:50 +0000 (+0800) Subject: gen-brackets-tab.c: Declare variables at top-of-block X-Git-Tag: v1.0.2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d81debadb301b499457afb52b772df64a03724c;p=fribidi gen-brackets-tab.c: Declare variables at top-of-block This is the only change that is required for fribidi to build on pre-C99 compilers. --- diff --git a/gen.tab/gen-brackets-tab.c b/gen.tab/gen-brackets-tab.c index aab06eb..8c1f1df 100644 --- a/gen.tab/gen-brackets-tab.c +++ b/gen.tab/gen-brackets-tab.c @@ -151,6 +151,8 @@ read_unicode_data_txt_equivalence ( int i; const char *s = buf; char ce_string[256]; /* For parsing the equivalence */ + char *p = NULL; + int ce, in_tag; l++; @@ -170,9 +172,9 @@ read_unicode_data_txt_equivalence ( continue; /* split and parse ce */ - char *p = ce_string; - int ce = -1; - int in_tag = 0; + p = ce_string; + ce = -1; + in_tag = 0; while(*p) { if (*p==';')