core: symbol: Add symbol management

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 21:50:43 -04:00
parent 5c3c78f561
commit 85c21a81bb
4 changed files with 229 additions and 0 deletions
+6
View File
@@ -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);
}