From 45cb29a2ada4edfc2b547fe023d923ce0299a61d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 8 Aug 2019 00:30:28 +0200 Subject: src: remove global symbol_table Store symbol tables in context object instead. Use the nft_ctx object to store the dynamic symbol table. Pass it on to the parse_ctx object so this can be accessed from the parse routines. This dynamic symbol table is also accesible from the output_ctx object for print routines. Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/datatype.h') diff --git a/include/datatype.h b/include/datatype.h index 018f013a..cf115158 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -238,9 +238,7 @@ extern void symbol_table_print(const struct symbol_table *tbl, struct output_ctx *octx); extern struct symbol_table *rt_symbol_table_init(const char *filename); -extern void rt_symbol_table_free(struct symbol_table *tbl); - -extern struct symbol_table *mark_tbl; +extern void rt_symbol_table_free(const struct symbol_table *tbl); extern const struct datatype invalid_type; extern const struct datatype verdict_type; -- cgit v1.2.3