From ed10c6397cc27ad161c7fcd5242c38efd89dc5ee Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 28 Sep 2005 21:23:12 +0000 Subject: 2005-09-28 Frank Ch. Eigler PR 1182. * main.cxx (main): Support -D macro-setting option. * stap.1.in: Document it and related macros. * buildrun.cxx (compile_pass): Emit macro definitions. * translate.cxx (translate_pass): Guard limit macros with #ifdef. Eliminate MAXCONCURRENCY macro. * elaborate.h (systemtap_session): Add "macros" field. * parse.cxx (parse_if_statement): Clear "elseblock" if needed. 2005-09-28 Frank Ch. Eigler PR 1182. * systemtap.samples/control_limits.*: New test. --- parse.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parse.cxx') diff --git a/parse.cxx b/parse.cxx index a1a54011..9f714359 100644 --- a/parse.cxx +++ b/parse.cxx @@ -946,6 +946,8 @@ parser::parse_if_statement () next (); s->elseblock = parse_statement (); } + else + s->elseblock = 0; // in case not otherwise initialized return s; } -- cgit