Clean up imports a bit

This commit is contained in:
Bruce Hill 2024-05-18 14:42:35 -04:00
parent a1d18fd422
commit e439fcd1e2
3 changed files with 3 additions and 7 deletions

View File

@ -5,6 +5,7 @@
#include <gc/cord.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "datatypes.h"
#include "types.h"

View File

@ -3,17 +3,10 @@
// All of the different builtin modules can be included by including this one
// import
#include <err.h>
#include <gc.h>
#include <gc/cord.h>
#include <math.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "array.h"
#include "bool.h"

2
tomo.c
View File

@ -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 <stdlib.h>\n"
"#include <tomo/tomo.h>\n"
"#include <unistd.h>\n"
"#include \"", filename, ".h\"\n"
"\n"
"int main(int argc, char *argv[]) {\n"