diff options
Diffstat (limited to 'boot/catboot.c')
| -rw-r--r-- | boot/catboot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/boot/catboot.c b/boot/catboot.c index a0b4ca1..40756ac 100644 --- a/boot/catboot.c +++ b/boot/catboot.c @@ -134,8 +134,10 @@ debug_transpile_pass(struct Source_File source_file) return parser_result; } + struct Transpile_Output output = transpile_output_from_file(stdout); + struct Transpiler transpiler; - transpiler_new(&transpiler, stdout); + transpiler_new(&transpiler, output); return transpiler_catskill_to_c(&transpiler, &tree); } @@ -243,8 +245,10 @@ default_command(struct Command_Arguments* arguments) goto end; } + struct Transpile_Output output = transpile_output_from_file(output_file); + struct Transpiler transpiler; - transpiler_new(&transpiler, output_file); + transpiler_new(&transpiler, output); if (transpiler_catskill_to_c(&transpiler, &tree) != 0) { log_error("transpiler finished with errors\n"); |
