1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Filter/Conf: Method names have their own keyword hash

To allow for future dynamic method definition, parsing method names is
done via a dedicated keyword hash/scope.
This commit is contained in:
Maria Matejka
2023-06-13 09:39:29 +02:00
committed by Ondrej Zajicek
parent 6b95353ebd
commit f86c86b791
6 changed files with 40 additions and 16 deletions

View File

@@ -143,6 +143,12 @@ struct sym_scope {
byte readonly:1; /* Do not add new symbols */
};
enum keyword_scope {
CFK_KEYWORDS,
CFK_METHODS,
CFK__MAX
};
extern struct sym_scope *global_root_scope;
struct bytestring {