mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::vector for section patches
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// GUIDELINE: external code MUST NOT BE AWARE of the data structure used!
|
||||
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
#include "link/main.hpp"
|
||||
|
||||
@@ -45,8 +46,7 @@ struct Section {
|
||||
uint16_t alignMask;
|
||||
uint16_t alignOfs;
|
||||
uint8_t *data; // Array of size `size`
|
||||
uint32_t nbPatches;
|
||||
struct Patch *patches;
|
||||
std::vector<struct Patch> *patches;
|
||||
// Extra info computed during linking
|
||||
struct Symbol **fileSymbols;
|
||||
uint32_t nbSymbols;
|
||||
|
||||
Reference in New Issue
Block a user