From 6a169de321b131e73b86967a1a8564365217275a Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sun, 26 Jul 2026 11:09:14 -0700 Subject: clean up types --- lexer.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lexer.h') diff --git a/lexer.h b/lexer.h index aefca82..f228b2a 100644 --- a/lexer.h +++ b/lexer.h @@ -1,6 +1,8 @@ #ifndef LEXER_H #define LEXER_H +#include "ccc.h" + enum token_type { TK_NOT_FOUND, TK_IDENT, @@ -54,15 +56,12 @@ enum token_type { TK_SHL_EQ }; -typedef unsigned long long int_lit_t; -typedef double float_lit_t; - struct token { enum token_type type; union { char* ident; - int_lit_t int_lit; - float_lit_t float_lit; + integral_t int_lit; + floating_t float_lit; char char_lit; char* str_lit; void* unused; -- cgit v1.2.3