From: Maria Matejka Date: Thu, 28 Nov 2024 11:43:43 +0000 (+0100) Subject: Merge commit '39e75b87' into thread-merge-2.16 X-Git-Tag: v3.0.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a11170fedbf597e2c31c782d707c3de8af4685;p=thirdparty%2Fbird.git Merge commit '39e75b87' into thread-merge-2.16 --- 52a11170fedbf597e2c31c782d707c3de8af4685 diff --cc doc/bird.sgml index d07ac6dd0,e04f8d0eb..c5ebc142b --- a/doc/bird.sgml +++ b/doc/bird.sgml @@@ -1995,13 -1945,16 +1997,16 @@@ may be an existing one (when just name and name is used). In both cases, it must have the same type as elements.

The case is similar to case from Pascal. Syntax is case - . The expression after case can be of any type which can be - on the left side of the ˜ operator and anything that could be a member of - a set is allowed before matches one of the matches - neither of the . + + The expression after case can be of any type that could be a member of + a set, while the matches one -of the matches one ++of the matches neither of the Here is example that uses name); + if (!f_valid_set_type(SYM_TYPE($1))) + cf_error("%s: Set-incompatible type (%s)", $1->name, f_type_name(SYM_TYPE($1))); $$ = *$1->val; } ; @@@ -779,7 -752,7 +782,7 @@@ fprefix_set ; switch_body: /* EMPTY */ { $$ = NULL; } - | switch_body switch_items ':' cmd { - | switch_body switch_items ':' cmds_scoped { ++ | switch_body switch_items ':' cmd { /* Fill data fields */ struct f_tree *t; for (t = $2; t; t = t->left)