summaryrefslogtreecommitdiffstats
path: root/conf/conf.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-11-30 15:03:36 +0100
committerMartin Mares <mj@ucw.cz>1999-11-30 15:03:36 +0100
commitc9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 (patch)
treee12cc810a25c7f829c86d69801202d87f6dce9e8 /conf/conf.c
parentf0474f207061151183bb85d59f09422e7bb7e2ee (diff)
downloadbird-c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0.tar
bird-c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0.zip
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.
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 47d4db4..4e2f920 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -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;