Use std::deque (iterable) for section stack

This commit is contained in:
Rangi42
2024-02-21 10:28:51 -05:00
committed by Sylvie
parent feb342804b
commit a310b659cd
4 changed files with 13 additions and 29 deletions

View File

@@ -3,6 +3,7 @@
#ifndef RGBDS_ASM_OUTPUT_H
#define RGBDS_ASM_OUTPUT_H
#include <deque>
#include <stdint.h>
#include "linkdefs.hpp"
@@ -11,7 +12,7 @@ struct Expression;
struct FileStackNode;
extern const char *objectName;
extern struct Section *sectionList;
extern std::deque<struct Section *> sectionList;
void out_RegisterNode(struct FileStackNode *node);
void out_ReplaceNode(struct FileStackNode *node);

View File

@@ -23,7 +23,6 @@ struct Section {
uint32_t bank;
uint8_t align; // Exactly as specified in `ALIGN[]`
uint16_t alignOfs;
struct Section *next;
struct Patch *patches;
uint8_t *data;
};