From f1032f0c8eb19b8bca37f73ca7797f4b23620d28 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 25 Nov 2024 16:46:27 +0000 Subject: [PATCH] lang: ast: move unit-package parser state definition to c file --- lang/ast/unit-package.c | 7 ++++++- lang/ast/unit-package.h | 13 ------------- lang/ast/unit.c | 1 - 3 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 lang/ast/unit-package.h diff --git a/lang/ast/unit-package.c b/lang/ast/unit-package.c index baaf418..5c01b1f 100644 --- a/lang/ast/unit-package.c +++ b/lang/ast/unit-package.c @@ -1,10 +1,15 @@ #include +#include #include -#include "unit-package.h" #include "ctx.h" #include "node.h" +struct unit_package_parser_state { + struct parser_state s_base; + int s_prev_token; +}; + static enum ivy_status parse_dot(struct ivy_parser *ctx, struct ivy_token *tok) { struct unit_package_parser_state *state diff --git a/lang/ast/unit-package.h b/lang/ast/unit-package.h deleted file mode 100644 index 1477bfd..0000000 --- a/lang/ast/unit-package.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef _AST_UNIT_PACKAGE_H_ -#define _AST_UNIT_PACKAGE_H_ - -#include "ctx.h" - -#include - -struct unit_package_parser_state { - struct parser_state s_base; - int s_prev_token; -}; - -#endif diff --git a/lang/ast/unit.c b/lang/ast/unit.c index 2c50e5d..18d8943 100644 --- a/lang/ast/unit.c +++ b/lang/ast/unit.c @@ -1,7 +1,6 @@ #include #include "ctx.h" #include "node.h" -#include "unit-package.h" #include "iterate.h" static enum ivy_status parse_package_keyword(