Clean up imports a bit
This commit is contained in:
parent
a1d18fd422
commit
e439fcd1e2
@ -5,6 +5,7 @@
|
||||
#include <gc/cord.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "datatypes.h"
|
||||
#include "types.h"
|
||||
|
@ -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
2
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 <stdlib.h>\n"
|
||||
"#include <tomo/tomo.h>\n"
|
||||
"#include <unistd.h>\n"
|
||||
"#include \"", filename, ".h\"\n"
|
||||
"\n"
|
||||
"int main(int argc, char *argv[]) {\n"
|
||||
|
Loading…
Reference in New Issue
Block a user