diff --git a/src/asm/lexer.c b/src/asm/lexer.c index b5a88129..0361e883 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -232,6 +232,11 @@ static struct KeywordMapping { {"OPT", T_POP_OPT} }; +static bool isWhitespace(int c) +{ + return c == ' ' || c == '\t'; +} + #define LEXER_BUF_SIZE 42 /* TODO: determine a sane value for this */ /* This caps the size of buffer reads, and according to POSIX, passing more than SSIZE_MAX is UB */ static_assert(LEXER_BUF_SIZE <= SSIZE_MAX, "Lexer buffer size is too large"); @@ -893,11 +898,6 @@ static void discardComment(void) /* Function to read a line continuation */ -static bool isWhitespace(int c) -{ - return c == ' ' || c == '\t'; -} - static void readLineContinuation(void) { dbgPrint("Beginning line continuation\n");