From 85c21a81bb07b8871e66fa80d377b330ab5104f1 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 23 May 2026 21:50:43 -0400 Subject: core: symbol: Add symbol management Signed-off-by: Ian Moffett --- core/state.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/state.c') diff --git a/core/state.c b/core/state.c index f6ed48e..b64271c 100644 --- a/core/state.c +++ b/core/state.c @@ -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); } -- cgit v1.2.3