From 3d81debadb301b499457afb52b772df64a03724c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 27 Feb 2018 12:30:50 +0800 Subject: [PATCH] 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. --- gen.tab/gen-brackets-tab.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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==';') -- 2.40.0