From e439fcd1e2090ff797b46c80c6264f08ea9e9cfb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 18 May 2024 14:42:35 -0400 Subject: Clean up imports a bit --- builtins/integers.h | 1 + builtins/tomo.h | 7 ------- tomo.c | 2 ++ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/builtins/integers.h b/builtins/integers.h index 707bc5c8..2e8f6721 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -5,6 +5,7 @@ #include #include #include +#include #include "datatypes.h" #include "types.h" diff --git a/builtins/tomo.h b/builtins/tomo.h index ded82945..17439b59 100644 --- a/builtins/tomo.h +++ b/builtins/tomo.h @@ -3,17 +3,10 @@ // All of the different builtin modules can be included by including this one // import -#include #include #include -#include -#include #include #include -#include -#include -#include -#include #include "array.h" #include "bool.h" diff --git a/tomo.c b/tomo.c index 168b8027..c2a82d3a 100644 --- a/tomo.c +++ b/tomo.c @@ -318,7 +318,9 @@ int compile_executable(const char *filename, const char *object_files, module_co binding_t *main_binding = get_binding(module_code->env, "main"); CORD program = CORD_all( + "#include \n" "#include \n" + "#include \n" "#include \"", filename, ".h\"\n" "\n" "int main(int argc, char *argv[]) {\n" -- cgit v1.2.3