Make all non-extern globals static

This commit is contained in:
Rangi42
2025-07-21 20:14:09 -04:00
parent 8d268e8a8a
commit c83b87e0a0
9 changed files with 26 additions and 21 deletions

View File

@@ -12,8 +12,8 @@
#include "link/warning.hpp"
std::vector<std::unique_ptr<Section>> sectionList;
std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
static std::vector<std::unique_ptr<Section>> sectionList;
static std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
void sect_ForEach(void (*callback)(Section &)) {
for (std::unique_ptr<Section> &ptr : sectionList) {