From eec7d1dea908432cc2ec9337cd3e0f63b72c16d9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 17 Nov 2009 14:12:30 -0800 Subject: Fixes for compliance to C89. --- ChangeLog | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index bd486f31..d80ad45a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,29 @@ +2009-11-17 Kaz Kylheku + + Fixes for compliance to C89. + + * lib.c (init): Do not define variable after statements. + + * match.c (match_files): Likewise. + + * regex.h (struct any_char_set, struct small_char_set, struct + displaced_char_set, struct large_char_set, + struct xlarge_char_set): do not use enum bitfields, which is a GCC + extension. + + * unwind.h (enum uw_frtype, uw_frtype_t): Combine into one + declartion, eliminating forward enum reference which is a GCC + extension. + (uw_block_begin): Add dummy typedef to macro so that it requires + a following semicolon. Without this, if the macro use is followed + by a semicolon, that semicolon looks like a null statement. A + subsequent declaration thus follows a statement and is not conforming + to C89. Also added an opening do. + (uw_block_end): Add while(0) to match do in uw_block_begin. + (uw_env_begin, uw_env_end): Add do/while(0) to macro pair, so + uw_env_end reuqires a semicolon. + (uw_catch_begin, uw_catch_end): Likewise. + 2009-11-17 Kaz Kylheku Version 022 -- cgit v1.2.3