core: state: Keep track of current pass

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-05-23 11:09:12 +00:00
parent f05a24df12
commit 596e63e468
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ state_init(struct cescal_state *state, const char *pathname)
return -1;
}
state->pass = 0;
return 0;
}
+2
View File
@@ -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;
};
/*