mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use automatic allocation for object file symbols
This commit is contained in:
@@ -16,7 +16,7 @@ struct Assertion {
|
||||
struct Patch patch; // Also used for its `.type`
|
||||
char *message;
|
||||
// This would be redundant with `.section->fileSymbols`... but `section` is sometimes NULL!
|
||||
std::vector<struct Symbol *> *fileSymbols;
|
||||
std::vector<struct Symbol> *fileSymbols;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
struct FileStackNode;
|
||||
struct Symbol;
|
||||
|
||||
void sdobj_ReadFile(struct FileStackNode const *fileName, FILE *file, std::vector<struct Symbol *> &fileSymbols);
|
||||
void sdobj_ReadFile(struct FileStackNode const *fileName, FILE *file, std::vector<struct Symbol> &fileSymbols);
|
||||
|
||||
#endif // RGBDS_LINK_SDAS_OBJ_H
|
||||
|
||||
@@ -47,7 +47,7 @@ struct Section {
|
||||
uint8_t *data; // Array of size `size`
|
||||
std::vector<struct Patch> *patches;
|
||||
// Extra info computed during linking
|
||||
std::vector<struct Symbol *> *fileSymbols;
|
||||
std::vector<struct Symbol> *fileSymbols;
|
||||
std::vector<struct Symbol *> *symbols;
|
||||
struct Section *nextu; // The next "component" of this unionized sect
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user