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

Lexer supports fallback symbol tables and uses them to recognize

symbols from global config when parsing CLI commands.

cf_lex_init_tables() is now called automatically inside the lexer.
This commit is contained in:
Martin Mares
1999-11-30 14:03:36 +00:00
parent f0474f2070
commit c9aae7f47f
3 changed files with 40 additions and 28 deletions

View File

@@ -45,7 +45,6 @@ config_parse(struct config *c)
if (setjmp(conf_jmpbuf))
return 0;
cf_lex_init(0);
cf_lex_init_tables();
protos_preconfig(c);
rt_preconfig(c);
cf_parse();
@@ -62,6 +61,7 @@ int
cli_parse(struct config *c)
{
new_config = c;
c->sym_fallback = config->sym_hash;
cfg_mem = c->mem;
if (setjmp(conf_jmpbuf))
return 0;