summaryrefslogtreecommitdiffstats
path: root/filter/config.Y
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-01 10:32:49 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-01 10:32:49 +0200
commit1895e81e0532f732f501036402bbdd1825885cfd (patch)
tree8f2c9e7b8bfb5b1b2e76657289a91af0146c9dd0 /filter/config.Y
parent42542c56c23174bfaefb1b949b90ed72afbea8fd (diff)
downloadbird-1895e81e0532f732f501036402bbdd1825885cfd.tar
bird-1895e81e0532f732f501036402bbdd1825885cfd.zip
Allow matching on enums:
if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { print "Failed in test"; quitbird; }
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 9d5dc43..69454bc 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -226,6 +226,7 @@ set_atom:
| pair { $$.type = T_PAIR; $$.val.i = $1; }
| fipa { $$ = $1; }
| fprefix { $$ = $1; }
+ | ENUM { $$.type = $1 >> 16; $$.val.i = $1 & 0xffff; }
;
set_item: