core: state: Keep track of current pass
Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
@@ -38,6 +38,7 @@ state_init(struct cescal_state *state, const char *pathname)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state->pass = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
* @tokbuf: Token buffer
|
* @tokbuf: Token buffer
|
||||||
* @ptrbox: Global pointer box
|
* @ptrbox: Global pointer box
|
||||||
* @lex_putback: Lexer putback buffer
|
* @lex_putback: Lexer putback buffer
|
||||||
|
* @pass: Current pass
|
||||||
*/
|
*/
|
||||||
struct cescal_state {
|
struct cescal_state {
|
||||||
int in_fd;
|
int in_fd;
|
||||||
@@ -26,6 +27,7 @@ struct cescal_state {
|
|||||||
struct tokbuf tokbuf;
|
struct tokbuf tokbuf;
|
||||||
struct ptrbox ptrbox;
|
struct ptrbox ptrbox;
|
||||||
char lex_putback;
|
char lex_putback;
|
||||||
|
uint8_t pass;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user