From dbef51ba052ff9d98fbed87f36b53e5a2d4af074 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 23 Aug 2020 02:09:40 +0200 Subject: [PATCH] Move `isWhitespace` to a place where it makes more sense --- src/asm/lexer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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");