summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-03-15 21:56:38 -0400
committerCarson Fleming <cflems@cflems.net>2026-03-15 21:56:38 -0400
commit68db110d34611fc8bb79035d3a11bba07dea43f3 (patch)
tree6c09d98930d2664181d0b111b4e708a87328c5cf
parentef4e0881be7f34ca5c7bc366e629020a144ef0de (diff)
downloadccc-68db110d34611fc8bb79035d3a11bba07dea43f3.tar.gz
move stuff
-rw-r--r--lexer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexer.c b/lexer.c
index f472acc..2fc6885 100644
--- a/lexer.c
+++ b/lexer.c
@@ -5,6 +5,10 @@
#include <string.h>
#include <stdckdint.h>
+static FILE* file = NULL;
+static int lookahead;
+static unsigned long LINE, COL;
+
#define LEXER_PANIC(format, ...) {\
fprintf(\
stderr,\
@@ -15,10 +19,6 @@
exit(1);\
}
-static FILE* file = NULL;
-static int lookahead;
-static unsigned long LINE, COL;
-
void lexer_load(const char* path) {
if (file != NULL) {
fclose(file);