From: = <=> Date: Fri, 19 Dec 2025 13:12:35 +0000 (+0100) Subject: Misc fixes X-Git-Url: https://git.uwuaxy.net/?a=commitdiff_plain;h=ea84228fd2bec161cd2e20020828ab7db75c0300;p=axy%2Fft%2Fpushswap.git Misc fixes --- 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();