Split RGBLINK linkerscript parser functions into their own file

This commit is contained in:
Rangi42
2025-07-27 10:53:12 -04:00
parent f3cbfcecf4
commit a353637a90
15 changed files with 802 additions and 787 deletions

View File

@@ -595,7 +595,7 @@ static bool isMacroChar(char c) {
return c == '@' || c == '#' || c == '<' || (c >= '1' && c <= '9');
}
// forward declarations for readBracketedMacroArgNum
// Forward declarations for `readBracketedMacroArgNum`
static int peek();
static void shiftChar();
static int bumpChar();
@@ -795,7 +795,7 @@ int LexerState::peekCharAhead() {
return EOF;
}
// forward declarations for peek
// Forward declarations for `peek`
static std::shared_ptr<std::string> readInterpolation(size_t depth);
static int peek() {
@@ -1622,7 +1622,7 @@ static void readCharacter(std::string &str) {
// Lexer core
static Token yylex_SKIP_TO_ENDC(); // forward declaration for yylex_NORMAL
static Token yylex_SKIP_TO_ENDC(); // Forward declaration for `yylex_NORMAL`
// Must stay in sync with the `switch` in `yylex_NORMAL`!
static bool isGarbageCharacter(int c) {