Rename some variables left from the C parser (e.g. yylval)

This commit is contained in:
Rangi42
2024-03-29 19:42:23 -04:00
parent cf3e5e15f8
commit eb708ebee5
2 changed files with 40 additions and 42 deletions

View File

@@ -323,9 +323,8 @@ int main(int argc, char *argv[]) {
// Init lexer and file stack, providing file info
fstk_Init(mainFileName, maxDepth);
// Perform parse
yy::parser parser;
if (parser.parse() != 0 && nbErrors == 0)
// Perform parse (`yy::parser` is auto-generated from `parser.y`)
if (yy::parser parser; parser.parse() != 0 && nbErrors == 0)
nbErrors = 1;
sect_CheckUnionClosed();