From 024f101e97197d1001cb9dd3403eee4a2e4c35bf Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Sun, 2 Oct 2011 12:19:29 -0700 Subject: Compiles as C++ again. * lib.h (cons_set): New macro. * match.c (match_line, match_files): In collect clause handlers, move variable declarations above goto, and initialize with cons_set, instead of declaring and initializing with cons_bind. This eliminates the stupid C++ error that goto skips a variable initialization (which happens even when it can be trivially proven that the has no next use at the goto site!) --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 4c267bdf..cf94b3b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2011-10-02 Kaz Kylheku <kaz@kylheku.com> + + Compiles as C++ again. + + * lib.h (cons_set): New macro. + + * match.c (match_line, match_files): In collect clause handlers, + move variable declarations above goto, and initialize with + cons_set, instead of declaring and initializing with cons_bind. + This eliminates the stupid C++ error that goto skips a variable + initialization (which happens even when it can be trivially + proven that the has no next use at the goto site!) + 2011-10-01 Kaz Kylheku <kaz@kylheku.com> Version 038 -- cgit v1.2.3