spec: change include to ignore duped includes across spec (#2777)

* spec: impl `include_once` and error on duped includes across spec

* duped includes fixups

* rm get_single_segment_by_name from spec.c (unused code)

* replace include logic with include_once's
This commit is contained in:
Dragorn421
2026-08-03 16:42:52 +02:00
committed by GitHub
parent da4a1f661c
commit 22d4ca0be7
4 changed files with 21 additions and 92 deletions
-4
View File
@@ -55,10 +55,6 @@ typedef struct Segment {
void parse_rom_spec(char* spec, struct Segment** segments, int* segment_count);
bool get_single_segment_by_name(struct Segment* dstSegment, char *spec, const char *segmentName);
void free_single_segment_elements(struct Segment *segment);
void free_rom_spec(struct Segment* segments, int segment_count);
#endif