summaryrefslogtreecommitdiffstats
path: root/bird.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-10-28 23:03:36 +0200
committerPavel Machek <pavel@ucw.cz>1999-10-28 23:03:36 +0200
commit41be4444f2f548c5cc135593b2c820180a22ff99 (patch)
treedb23c6c220b8a0304e6e29b07be67ff628099e23 /bird.conf
parentc2250f91c749f563229ad624bbd03053c1d671d0 (diff)
downloadbird-41be4444f2f548c5cc135593b2c820180a22ff99.tar
bird-41be4444f2f548c5cc135593b2c820180a22ff99.zip
switch() { } done right.
Diffstat (limited to 'bird.conf')
-rw-r--r--bird.conf7
1 files changed, 5 insertions, 2 deletions
diff --git a/bird.conf b/bird.conf
index b1220c3..3b8f6a7 100644
--- a/bird.conf
+++ b/bird.conf
@@ -14,7 +14,7 @@ function callme (int arg1; int arg2;)
case arg1 {
2: print "dva"; print "jeste jednou dva";
- [ 3 .. 5 ]: print "tri az pet";
+ 3 .. 5: print "tri az pet";
else: print "neco jineho";
}
}
@@ -40,8 +40,11 @@ prefix px;
print "Testing prefixes: 1.2.3.4/18 = " px;
print "Testing pairs: (1,2) = " (1,2);
+ print "What will this do? " [ 1, 2, 1, 1, 1, 3, 4, 1, 1, 1, 5 ];
+
print "Testing functions...";
- callme ( 1, 2 );
+# callme ( 1, 2 );
+ callme ( 2, 2 );
callme ( 2, 2 );
callme ( 3, 2 );
callme ( 4, 2 );