From: Ondrej Zajicek Date: Mon, 4 Oct 2010 17:55:11 +0000 (+0200) Subject: Fixes scope of filter symbols. X-Git-Tag: v1.3.0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b7bbfc690a7ad6a61a8cdf4abe87345057fb2e;p=thirdparty%2Fbird.git Fixes scope of filter symbols. --- diff --git a/filter/config.Y b/filter/config.Y index 8fb511e52..8ff20466a 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -56,8 +56,9 @@ CF_GRAMMAR CF_ADDTO(conf, filter_def) filter_def: - FILTER SYM { cf_push_scope( $2 ); } filter_body { - $2 = cf_define_symbol($2, SYM_FILTER, $4); + FILTER SYM { $2 = cf_define_symbol($2, SYM_FILTER, NULL); cf_push_scope( $2 ); } + filter_body { + $2->def = $4; $4->name = $2->name; DBG( "We have new filter defined (%s)\n", $2->name ); cf_pop_scope();