From 6f06f42953a8bb266c4238cb876b899647fd3ac8 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 22 Nov 2024 22:30:26 +0000 Subject: [PATCH] lang: add missing includes --- lang/lex.c | 8 +++++--- lang/lex.h | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lang/lex.c b/lang/lex.c index 3aaf2de..15ef983 100644 --- a/lang/lex.c +++ b/lang/lex.c @@ -1,15 +1,17 @@ +#include "lex.h" + #include #include -#include #include #include +#include #include #include #include #include #include #include -#include "lex.h" +#include #define LINEBUF_DEFAULT_CAPACITY 1024 @@ -410,7 +412,7 @@ static int advance(struct ivy_lexer *lex) return c; } -static bool input_available(struct ivy_lexer* lex) +static bool input_available(struct ivy_lexer *lex) { return lex->lex_linebuf_ptr < lex->lex_linebuf_len; } diff --git a/lang/lex.h b/lang/lex.h index c48d717..c95f88c 100644 --- a/lang/lex.h +++ b/lang/lex.h @@ -2,8 +2,10 @@ #define _LEX_H_ #include -#include #include +#include +#include +#include #include struct ivy_lexer { @@ -52,4 +54,4 @@ struct lex_token_def { uint64_t name_hash; }; -#endif \ No newline at end of file +#endif