From ea84228fd2bec161cd2e20020828ab7db75c0300 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 19 Dec 2025 14:12:35 +0100 Subject: [PATCH] Misc fixes --- main_checker.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main_checker.c b/main_checker.c index 69047e6..e3d3d27 100644 --- a/main_checker.c +++ b/main_checker.c @@ -6,7 +6,7 @@ /* By: clefrere +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/12/02 22:15:12 by agilliar #+# #+# */ -/* Updated: 2025/12/19 12:03:38 by agilliar ### ########.fr */ +/* Updated: 2025/12/19 14:10:56 by agilliar ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,14 +22,15 @@ int main(int argc, char **argv) t_stacks stacks; int i; t_ops ops; - t_frac _disorder; i = 1; stacks = stacks_new(); + if (argc <= 1) + cheatexit(0); while (i < argc) arg_step(argv[i++], &stacks); ops = ops_stackops(); - output_disorder(&_disorder); + compute_disorder(&stacks.a); stacks_apply(&stacks, &ops, &algorithm_stdin); output_flush(); eoutput_flush(); -- 2.51.0