summaryrefslogtreecommitdiff
path: root/conf/conf.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-11-30 14:03:36 +0000
committerMartin Mares <mj@ucw.cz>1999-11-30 14:03:36 +0000
commitc9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 (patch)
treee12cc810a25c7f829c86d69801202d87f6dce9e8 /conf/conf.h
parentf0474f207061151183bb85d59f09422e7bb7e2ee (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.h')
-rw-r--r--conf/conf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/conf.h b/conf/conf.h
index ec8be407..957ce443 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -23,6 +23,8 @@ struct config {
char *err_msg; /* Parser error message */
int err_lino; /* Line containing error */
char *file_name; /* Name of configuration file */
+ struct symbol **sym_hash; /* Lexer: symbol hash table */
+ struct symbol **sym_fallback; /* Lexer: fallback symbol hash table */
};
extern struct config *config, *new_config;
@@ -69,7 +71,6 @@ struct symbol {
extern int conf_lino;
-void cf_lex_init_tables(void);
int cf_lex(void);
void cf_lex_init(int is_cli);
struct symbol *cf_find_symbol(byte *c);