diff options
| -rw-r--r-- | src/compile.c | 4 | ||||
| -rw-r--r-- | src/compile/enums.c (renamed from src/enums.c) | 14 | ||||
| -rw-r--r-- | src/compile/enums.h (renamed from src/enums.h) | 6 | ||||
| -rw-r--r-- | src/compile/structs.c (renamed from src/structs.c) | 14 | ||||
| -rw-r--r-- | src/compile/structs.h (renamed from src/structs.h) | 4 |
5 files changed, 21 insertions, 21 deletions
diff --git a/src/compile.c b/src/compile.c index b5e22342..a81b74d5 100644 --- a/src/compile.c +++ b/src/compile.c @@ -8,9 +8,10 @@ #include "ast.h" #include "compile.h" +#include "compile/enums.h" #include "compile/list.h" +#include "compile/structs.h" #include "config.h" -#include "enums.h" #include "environment.h" #include "modules.h" #include "naming.h" @@ -20,7 +21,6 @@ #include "stdlib/tables.h" #include "stdlib/text.h" #include "stdlib/util.h" -#include "structs.h" #include "typecheck.h" typedef ast_t *(*comprehension_body_t)(ast_t *, ast_t *); diff --git a/src/enums.c b/src/compile/enums.c index 078600e0..3abe0307 100644 --- a/src/enums.c +++ b/src/compile/enums.c @@ -2,14 +2,14 @@ #include <gc.h> #include <stdio.h> -#include "ast.h" -#include "compile.h" -#include "environment.h" -#include "naming.h" -#include "stdlib/tables.h" -#include "stdlib/text.h" +#include "../ast.h" +#include "../compile.h" +#include "../environment.h" +#include "../naming.h" +#include "../stdlib/tables.h" +#include "../stdlib/text.h" +#include "../typecheck.h" #include "structs.h" -#include "typecheck.h" Text_t compile_enum_typeinfo(env_t *env, ast_t *ast) { DeclareMatch(def, ast, EnumDef); diff --git a/src/enums.h b/src/compile/enums.h index 6f394a60..6a42bece 100644 --- a/src/enums.h +++ b/src/compile/enums.h @@ -2,9 +2,9 @@ // Compilation of tagged unions (enums) -#include "ast.h" -#include "environment.h" -#include "stdlib/datatypes.h" +#include "../ast.h" +#include "../environment.h" +#include "../stdlib/datatypes.h" Text_t compile_enum_typeinfo(env_t *env, ast_t *ast); Text_t compile_enum_constructors(env_t *env, ast_t *ast); diff --git a/src/structs.c b/src/compile/structs.c index 9be38d1f..d4bb346c 100644 --- a/src/structs.c +++ b/src/compile/structs.c @@ -1,13 +1,13 @@ // Logic for compiling new struct types defined in code #include <gc.h> -#include "ast.h" -#include "compile.h" -#include "environment.h" -#include "naming.h" -#include "stdlib/tables.h" -#include "stdlib/text.h" -#include "typecheck.h" +#include "../ast.h" +#include "../compile.h" +#include "../environment.h" +#include "../naming.h" +#include "../stdlib/tables.h" +#include "../stdlib/text.h" +#include "../typecheck.h" Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret, bool is_opaque) { diff --git a/src/structs.h b/src/compile/structs.h index 9a9d08e5..f24ed15a 100644 --- a/src/structs.h +++ b/src/compile/structs.h @@ -2,8 +2,8 @@ // Compilation of user-defined structs -#include "ast.h" -#include "environment.h" +#include "../ast.h" +#include "../environment.h" Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret, bool is_opaque); |
