Use std::map for rgblink symbols and sections

This commit is contained in:
Rangi42
2024-02-20 20:59:24 -05:00
committed by Sylvie
parent d5de3fa111
commit f44701c02d
7 changed files with 30 additions and 49 deletions

View File

@@ -556,9 +556,8 @@ static void applyFilePatches(struct Section *section, struct Section *dataSectio
/*
* Applies all of a section's patches, iterating over "components" of unionized sections
* @param section The section to patch
* @param arg Ignored callback arg
*/
static void applyPatches(struct Section *section, void *)
static void applyPatches(struct Section *section)
{
if (!sect_HasData(section->type))
return;
@@ -570,7 +569,7 @@ static void applyPatches(struct Section *section, void *)
void patch_ApplyPatches(void)
{
initRPNStack();
sect_ForEach(applyPatches, NULL);
sect_ForEach(applyPatches);
freeRPNStack();
}