From a8be9efcd3c3db6f2d6b78de2074d87e296459f8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 5 Sep 2024 14:38:37 -0400 Subject: Rework CLI compilation so that all of the argument parsing is written to the .tm.c file and the runner program is *just* a single function call to the function that parses args and runs the main function. Also improved some CLI usage error code --- builtins/functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtins') diff --git a/builtins/functions.c b/builtins/functions.c index c11dd7e6..0ccc44cb 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -38,8 +38,8 @@ public void tomo_init(void) srand48(seed); Int$init_random(seed); - if (register_printf_specifier('k', printf_text, printf_text_size)) - errx(1, "Couldn't set printf specifier"); + if (register_printf_specifier('k', printf_text, printf_text_size)) + errx(1, "Couldn't set printf specifier"); } static void print_stack_trace(FILE *out) -- cgit v1.2.3