[PATCH 08/12] Introduce NOOP statement: ';'
Sergey Popovich
popovich_sergei at mail.ru
Mon Sep 30 20:33:52 CEST 2013
There are no separate operator in BIRD filter syntax which executes
NO OPeration. However interpret() at filter/filter.c contains an instruction
'0' to handle such operator. Use ';' as NOOP statement.
---
filter/config.Y | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/filter/config.Y b/filter/config.Y
index 42b9e19..fa87c76 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -810,7 +810,11 @@ var_list: /* EMPTY */ { $$ = NULL; }
;
cmd:
- IF term THEN block {
+ ';' {
+ $$ = f_new_inst();
+ $$->code = '0';
+ }
+ | IF term THEN block {
$$ = f_new_inst();
$$->code = '?';
$$->a1.p = $2;
--
1.7.10.4
More information about the Bird-users
mailing list