diff options
| author | Chloe M. <chloe@mirocom.org> | 2026-05-23 11:09:12 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@mirocom.org> | 2026-05-23 11:09:12 +0000 |
| commit | 596e63e468b9aa56683b5f2ea31296cb808552b8 (patch) | |
| tree | 2acfc020b5302e9f9fc6425062768cbcb67a475d | |
| parent | f05a24df12b18c023f9df7349cf84debc6fc4e29 (diff) | |
core: state: Keep track of current pass
Signed-off-by: Chloe M. <chloe@mirocom.org>
| -rw-r--r-- | core/state.c | 1 | ||||
| -rw-r--r-- | include/cescal/state.h | 2 |
2 files changed, 3 insertions, 0 deletions
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; }; /* |
