summaryrefslogtreecommitdiffstats
path: root/bird.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-09-29 16:23:11 +0200
committerPavel Machek <pavel@ucw.cz>1999-09-29 16:23:11 +0200
commit4caa2231fc75ed351b9a9f20a97a81ce5d4421d0 (patch)
tree793ca902fa9a9af01509f5c1395835ad41aef021 /bird.conf
parent2c1d1cc765238aef0e8bfdbc1d8bc954fa0fc222 (diff)
downloadbird-4caa2231fc75ed351b9a9f20a97a81ce5d4421d0.tar
bird-4caa2231fc75ed351b9a9f20a97a81ce5d4421d0.zip
Make configuration use new case statement.
Diffstat (limited to 'bird.conf')
-rw-r--r--bird.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/bird.conf b/bird.conf
index c322efb..bc31efc 100644
--- a/bird.conf
+++ b/bird.conf
@@ -11,6 +11,12 @@ define xyzzy = 120+10;
function callme (int arg1; int arg2;)
{
print "Function callme called arguments " arg1 " and " arg2;
+
+ case arg1 {
+ 2: { print "dva"; print "jeste jednou dva"; }
+ [ 3 .. 5 ]: print "tri az pet";
+ else: print "neco jineho";
+ }
}
function startup ()
@@ -37,6 +43,11 @@ int i;
print " false = " 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ];
callme ( 1, 2, );
+ callme ( 2, 2, );
+ callme ( 3, 2, );
+ callme ( 4, 2, );
+ callme ( 7, 2, );
+
print "done";
quitbird;
print "*** FAIL: this is unreachable";