/* By: clefrere <clefrere@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */
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();