commit 6d1a49b04ea41ea43874114884012860d8ee72ea
parent c02ee739581c03a36017807ca8e797e881bd1f34
Author: citbl <citbl@citbl.org>
Date: Thu, 21 May 2026 21:59:08 +1000
refac
Diffstat:
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/mtcc/src/token.h b/mtcc/src/token.h
@@ -51,14 +51,3 @@ enum token_type {
TOKEN_L_BRACE,
TOKEN_R_BRACE,
};
-
-struct span {
- const char *filename;
- size_t line, col;
- size_t start, stop;
-};
-
-struct token {
- enum token_type token_type;
- struct span span;
-};
diff --git a/mtcc/src/types.h b/mtcc/src/types.h
@@ -3,6 +3,17 @@
#include <stddef.h>
#include "token.h"
+struct span {
+ const char *filename;
+ size_t line, col;
+ size_t start, stop;
+};
+
+struct token {
+ enum token_type token_type;
+ struct span span;
+};
+
struct lexer {
const char *file;
const char *src;