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; }; /*