From 4dc6b49db40eaebf700d5c26c93c5f33b3db60ac Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 25 Jan 2026 00:57:56 +0100 Subject: Allow different transpile pass output types Signed-off-by: Mel --- boot/catboot.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'boot/catboot.c') 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"); -- cgit 1.4.1