diff options
author | Martin Mares <mj@ucw.cz> | 1999-11-30 14:03:36 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-11-30 14:03:36 +0000 |
commit | c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 (patch) | |
tree | e12cc810a25c7f829c86d69801202d87f6dce9e8 /conf/conf.c | |
parent | f0474f207061151183bb85d59f09422e7bb7e2ee (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c index 47d4db4e..4e2f920d 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; |