0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

Fixes scope of filter symbols.

This commit is contained in:
Ondrej Zajicek 2010-10-04 19:55:11 +02:00
parent 0d1b3c4c0e
commit b2b7bbfc69

View File

@ -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();