From 596e63e468b9aa56683b5f2ea31296cb808552b8 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 23 May 2026 11:09:12 +0000 Subject: core: state: Keep track of current pass Signed-off-by: Chloe M. --- core/state.c | 1 + include/cescal/state.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/state.c b/core/state.c index 6002957..8c8639c 100644 --- a/core/state.c +++ b/core/state.c @@ -38,6 +38,7 @@ state_init(struct cescal_state *state, const char *pathname) return -1; } + state->pass = 0; return 0; } diff --git a/include/cescal/state.h b/include/cescal/state.h index 3c1ad86..8801837 100644 --- a/include/cescal/state.h +++ b/include/cescal/state.h @@ -19,6 +19,7 @@ * @tokbuf: Token buffer * @ptrbox: Global pointer box * @lex_putback: Lexer putback buffer + * @pass: Current pass */ struct cescal_state { int in_fd; @@ -26,6 +27,7 @@ struct cescal_state { struct tokbuf tokbuf; struct ptrbox ptrbox; char lex_putback; + uint8_t pass; }; /* -- cgit v1.2.3