36 #define SYM_TAB_SIZE 997
int addr
Definition: symbol.h:52
struct node * symbol_search(sym_table_t *symTab, const char *name, int *hash, int *index)
Definition: symbol.c:77
void symbol_iterate(sym_table_t *symTab, iterate_fnc_t fnc, void *data)
Definition: symbol.c:93
char * name
Definition: symbol.h:51
void(* iterate_fnc_t)(symbol_t *sym, void *data)
Definition: symbol.h:136
int hash
Definition: symbol.c:30
sym_table_t * symbol_init(int table_size, int lookup_by_addr)
Definition: symbol.c:59
char * symbol_find_by_addr(sym_table_t *symTab, int addr)
Definition: symbol.c:88
symbol_t * symbol_find_by_name(sym_table_t *symTab, const char *name)
Definition: symbol.c:83
void symbol_reset(sym_table_t *symTab)
Definition: symbol.c:68
int symbol_add(sym_table_t *symTab, const char *name, int addr)
Definition: symbol.c:72
void symbol_term(sym_table_t *symTab)
Definition: symbol.c:64