added PGF(pIdent,pExpr)

This commit is contained in:
krangelov
2021-09-14 09:34:00 +02:00
parent cf7673525f
commit 22f62be511
9 changed files with 166 additions and 91 deletions

View File

@@ -227,6 +227,7 @@ PgfExprParser::PgfExprParser(PgfText *input, PgfUnmarshaller *unmarshaller)
pos = (const char*) &inp->text;
ch = ' ';
u = unmarshaller;
token_pos = NULL;
token_value = NULL;
token();
@@ -347,16 +348,18 @@ void PgfExprParser::str_char()
void PgfExprParser::token()
{
while (isspace(ch)) {
ch = getc();
}
if (token_value != NULL)
free(token_value);
token_tag = PGF_TOKEN_UNKNOWN;
token_pos = pos;
token_value = NULL;
while (isspace(ch)) {
token_pos = pos;
ch = getc();
}
switch (ch) {
case EOF:
ch = getc();
@@ -921,7 +924,6 @@ exit:
return type;
}
PGF_INTERNAL
void pgf_literal_free(PgfLiteral literal)
{