mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove unnecessary extern from nbSectionsToAssign
This commit is contained in:
@@ -3,10 +3,6 @@
|
||||
#ifndef RGBDS_LINK_ASSIGN_HPP
|
||||
#define RGBDS_LINK_ASSIGN_HPP
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint64_t nbSectionsToAssign;
|
||||
|
||||
// Assigns all sections a slice of the address space
|
||||
void assign_AssignSections();
|
||||
|
||||
|
||||
@@ -379,7 +379,6 @@ static void readSection(
|
||||
}
|
||||
|
||||
uint32_t nbPatches;
|
||||
|
||||
tryReadLong(
|
||||
nbPatches,
|
||||
file,
|
||||
@@ -483,7 +482,6 @@ void obj_ReadFile(char const *fileName, unsigned int fileID) {
|
||||
verbosePrint("Reading object file %s\n", fileName);
|
||||
|
||||
uint32_t revNum;
|
||||
|
||||
tryReadLong(revNum, file, "%s: Cannot read revision number: %s", fileName);
|
||||
if (revNum != RGBDS_OBJECT_REV) {
|
||||
fatal(
|
||||
@@ -498,15 +496,13 @@ void obj_ReadFile(char const *fileName, unsigned int fileID) {
|
||||
);
|
||||
}
|
||||
|
||||
uint32_t nbNodes;
|
||||
uint32_t nbSymbols;
|
||||
uint32_t nbSections;
|
||||
|
||||
tryReadLong(nbSymbols, file, "%s: Cannot read number of symbols: %s", fileName);
|
||||
|
||||
uint32_t nbSections;
|
||||
tryReadLong(nbSections, file, "%s: Cannot read number of sections: %s", fileName);
|
||||
|
||||
nbSectionsToAssign += nbSections;
|
||||
|
||||
uint32_t nbNodes;
|
||||
tryReadLong(nbNodes, file, "%s: Cannot read number of nodes: %s", fileName);
|
||||
nodes[fileID].resize(nbNodes);
|
||||
verbosePrint("Reading %u nodes...\n", nbNodes);
|
||||
@@ -545,7 +541,6 @@ void obj_ReadFile(char const *fileName, unsigned int fileID) {
|
||||
}
|
||||
|
||||
uint32_t nbAsserts;
|
||||
|
||||
tryReadLong(nbAsserts, file, "%s: Cannot read number of assertions: %s", fileName);
|
||||
verbosePrint("Reading %" PRIu32 " assertions...\n", nbAsserts);
|
||||
for (uint32_t i = 0; i < nbAsserts; i++) {
|
||||
|
||||
@@ -850,8 +850,6 @@ void sdobj_ReadFile(FileStackNode const &src, FILE *file, std::vector<Symbol> &f
|
||||
);
|
||||
}
|
||||
|
||||
nbSectionsToAssign += fileSections.size();
|
||||
|
||||
for (FileSection &entry : fileSections) {
|
||||
std::unique_ptr<Section> §ion = entry.section;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user