]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: Implement mixed declarations of local variables
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 10 Mar 2022 00:02:45 +0000 (01:02 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 27 Jun 2022 19:13:32 +0000 (21:13 +0200)
commit1ac8e11bba15551ad6473a57a585649757fefa6b
tree76e1f6524a7b290bc5b4eb53c2bbbcc6056b359c
parenta2527ee53d9d8fe7a1c29b56f8450b9ef1f9c7bc
Filter: Implement mixed declarations of local variables

Allow variable declarations mixed with code, also in nested blocks with
proper scoping, and with variable initializers. E.g:

function fn(int a)
{
  int b;
  int c = 10;

  if a > 20 then
  {
    b = 30;
    int d = c * 2;
    print a, b, c, d;
  }

  string s = "Hello";
}
doc/bird.sgml
filter/config.Y
filter/f-inst.c
filter/test.conf