From c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 30 Nov 1999 14:03:36 +0000 Subject: 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. --- conf/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf/conf.c') 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; -- cgit v1.2.3