summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);