core: symbol: Add symbol management
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -35,6 +35,11 @@ state_init(struct cescal_state *state, const char *pathname)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (symbol_table_init(&state->symtab) < 0) {
|
||||
close(state->in_fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ptrbox_init(&state->ptrbox) < 0) {
|
||||
close(state->in_fd);
|
||||
return -1;
|
||||
@@ -50,4 +55,5 @@ state_close(struct cescal_state *state)
|
||||
state->in_fd = -1;
|
||||
ptrbox_destroy(&state->ptrbox);
|
||||
tokbuf_destroy(&state->tokbuf);
|
||||
symbol_table_destroy(&state->symtab);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user