avoid using EOF in the expression parser

This commit is contained in:
krangelov
2021-10-12 18:47:04 +02:00
parent ead1160a75
commit a2e7d20b7a
2 changed files with 77 additions and 65 deletions

View File

@@ -210,14 +210,14 @@ class PGF_INTERNAL_DECL PgfExprParser {
const char *token_pos, *pos;
uint32_t ch;
uint32_t getc();
bool getc();
void putc(uint32_t ch);
public:
PgfExprParser(PgfText* input, PgfUnmarshaller *unmarshaller);
~PgfExprParser();
void str_char();
bool str_char();
void token();
bool lookahead(int ch);