diff options
Diffstat (limited to '')
-rw-r--r-- | masm/parse.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/masm/parse.h b/masm/parse.h index 5f37052..ea8f929 100644 --- a/masm/parse.h +++ b/masm/parse.h @@ -35,33 +35,6 @@ struct expr { }; }; -enum symbol_flag { - SYM_LOCAL, - SYM_GLOBAL, - SYM_EXTERNAL, -}; - -struct symbol { - char name[MAX_LEX_LENGTH]; - uint32_t index; - struct section *sec; - enum symbol_flag flag; - -}; - -struct symbol_table { - uint32_t count; - uint32_t len; - struct symbol *symbols; -}; - -int symtbl_init(struct symbol_table *sym_tbl); -void symtbl_free(struct symbol_table *sym_tbl); - -int symtbl_push(struct symbol_table *sym_tbl, struct symbol sym); -int symtbl_find(struct symbol_table *sym_tbl, struct symbol **sym, - const char name[MAX_LEX_LENGTH]); - enum section_entry_type { ENT_INS, ENT_WORD, @@ -143,9 +116,6 @@ struct parser { // sections struct section_table sec_tbl; - // symbols - struct symbol_table sym_tbl; - // references struct reference_table ref_tbl; |