Some RGBLINK refactoring

- Consistently refer to `Section` fragments/unions as "pieces" (renaming `.nextu`)
- Remove `Symbol`'s `.label()` accessors (use `std::get<Label>`)
- Move some `Label`-related logic into `Symbol` methods
This commit is contained in:
Rangi42
2025-09-05 16:34:51 -04:00
parent e569e0c200
commit 1fc9ba86c4
10 changed files with 82 additions and 91 deletions

View File

@@ -580,14 +580,14 @@ static void applyFilePatches(Section &section, Section &dataSection) {
}
}
// Applies all of a section's patches, iterating over "components" of unionized sections
// Applies all of a section's patches, iterating over "pieces" of unionized sections
static void applyPatches(Section &section) {
if (!sectTypeHasData(section.type)) {
return;
}
for (Section *component = &section; component; component = component->nextu.get()) {
applyFilePatches(*component, section);
for (Section *piece = &section; piece != nullptr; piece = piece->nextPiece.get()) {
applyFilePatches(*piece, section);
}
}