]> git.ipfire.org Git - thirdparty/bird.git/commit
Conf: Allow keywords to be redefined by user symbols
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 13 Dec 2022 18:31:46 +0000 (19:31 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 25 Aug 2023 21:50:44 +0000 (23:50 +0200)
commitf5140d1027f514bc59d46ab8aa09181f5870afbd
tree0af416202ebde1828b3d0c2684061d600234142b
parentcce48c6cdd9484c606879ea76d4c633fce12ba36
Conf: Allow keywords to be redefined by user symbols

Most syntactic constructs in BIRD configuration (e.g. protocol options)
are defined as keywords, which are distinct from symbols (user-defined
names for protocols, variables, ...). That may cause backwards
compatibility issue when a new feature is added, as it may collide with
existing user names.

We can allow keywords to be shadowed by symbols in almost all cases to
avoid this issue.

This replaces the previous mechanism, where shadowable symbols have to be
explictly added to kw_syms.
conf/confbase.Y
conf/gen_keywords.m4
conf/gen_parser.m4
filter/config.Y
nest/config.Y
proto/bgp/config.Y
proto/ospf/config.Y
proto/radv/config.Y
proto/rip/config.Y