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

@@ -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);