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

@@ -16,14 +16,14 @@
#include "link/symbol.hpp"
#include "link/warning.hpp"
std::deque<Assertion> assertions;
static std::deque<Assertion> assertions;
struct RPNStackEntry {
int32_t value;
bool errorFlag; // Whether the value is a placeholder inserted for error recovery
};
std::deque<RPNStackEntry> rpnStack;
static std::deque<RPNStackEntry> rpnStack;
static void pushRPN(int32_t value, bool comesFromError) {
rpnStack.push_front({.value = value, .errorFlag = comesFromError});