diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-10 18:23:46 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-10 18:23:46 -0400 |
commit | 92a7e5853c6caeec09122c05ddbc19ae1498a0d8 (patch) | |
tree | d14a6a1c091df35c06ffb735ce3f6c72b1f37b42 /masm/parse.h | |
parent | relocation table hell (diff) | |
download | mips-92a7e5853c6caeec09122c05ddbc19ae1498a0d8.tar.gz mips-92a7e5853c6caeec09122c05ddbc19ae1498a0d8.tar.bz2 mips-92a7e5853c6caeec09122c05ddbc19ae1498a0d8.zip |
joe
Diffstat (limited to 'masm/parse.h')
-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; |