From cfe1bd5cb72a12f3bfc643f64b33444ad63502f9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Aug 2025 19:45:19 -0400 Subject: Shared includes for compile folder to reduce duplicate code --- src/compile/fieldaccess.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/compile/fieldaccess.c') diff --git a/src/compile/fieldaccess.c b/src/compile/fieldaccess.c index 93b31665..f1780fc9 100644 --- a/src/compile/fieldaccess.c +++ b/src/compile/fieldaccess.c @@ -1,4 +1,5 @@ // This file defines how to compile field accessing like `foo.x` + #include "../ast.h" #include "../config.h" #include "../environment.h" @@ -6,11 +7,7 @@ #include "../stdlib/text.h" #include "../stdlib/util.h" #include "../typecheck.h" -#include "declarations.h" -#include "enums.h" -#include "expressions.h" -#include "pointers.h" -#include "structs.h" +#include "compilation.h" Text_t compile_field_access(env_t *env, ast_t *ast) { DeclareMatch(f, ast, FieldAccess); -- cgit v1.2.3