gestion erreurs et leaks en cours de debug
This commit is contained in:
14
srcs/algo.c
14
srcs/algo.c
@@ -102,7 +102,7 @@ void send_sublist_to_a(t_stack **a, t_stack **b, t_list *solution)
|
||||
mark_step(solution, "send_sublist_to_a");
|
||||
}
|
||||
|
||||
void recursif_sort(t_stack **a, t_stack **b, t_list *solution)
|
||||
void hugo_sort(t_stack **a, t_stack **b, t_list *solution)
|
||||
{
|
||||
if (sublist_size(*a) > 4)
|
||||
divide_a(a, b, solution);
|
||||
@@ -119,16 +119,6 @@ void recursif_sort(t_stack **a, t_stack **b, t_list *solution)
|
||||
else
|
||||
return ;
|
||||
}
|
||||
recursif_sort(a, b, solution);
|
||||
}
|
||||
|
||||
void hugo_sort(t_stack **a, t_stack **b, t_list *solution)
|
||||
{
|
||||
if (sublist_size(*a) <= 3)
|
||||
special_sort_3(a, solution);
|
||||
else if (sublist_size(*a) <= 5)
|
||||
special_sort_5(a, b, solution);
|
||||
else
|
||||
recursif_sort(a, b, solution);
|
||||
hugo_sort(a, b, solution);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user