Use methods for RPN Expression (#1372)

This commit is contained in:
Sylvie
2024-03-22 04:41:04 -04:00
committed by GitHub
parent de667c8afb
commit dd43723e20
4 changed files with 397 additions and 446 deletions

View File

@@ -264,7 +264,7 @@ void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector<Symbol>
if (!strcmp(token, entry.section->name.c_str()))
fatal(&where, lineNo, "Area \"%s\" already defined earlier", token);
}
char const *sectionName = token; // We'll deal with the section's name depending on type
char const *sectName = token; // We'll deal with the section's name depending on type
expectToken("size", 'A');
@@ -297,7 +297,7 @@ void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector<Symbol>
curSection->name.append(where.name());
curSection->name.append(" ");
}
curSection->name.append(sectionName);
curSection->name.append(sectName);
expectToken("addr", 'A');