style: noming ast_sort.c

This commit is contained in:
Raphael 2024-09-19 15:38:09 +02:00
parent efac395168
commit 978636b6ef

View file

@ -1,27 +1,26 @@
/* ************************************************************************** */ /* ************************************************************************** */
/* */ /* */
/* ::: :::::::: */ /* ::: :::::::: */
/* best_move.c :+: :+: :+: */ /* ast_sort.c :+: :+: :+: */
/* +:+ +:+ +:+ */ /* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/29 20:04:33 by maiboyer #+# #+# */ /* Created: 2024/01/29 20:04:33 by maiboyer #+# #+# */
/* Updated: 2024/01/31 14:25:00 by maiboyer ### ########.fr */ /* Updated: 2024/09/19 15:37:59 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "me/types.h" #include "me/types.h"
#include "me/vec/vec_ast.h" #include "me/vec/vec_ast.h"
void vec_ast_sort(t_vec_ast *v, void vec_ast_sort(t_vec_ast *v, t_vec_ast_sort_fn is_sorted_fn)
t_vec_ast_sort_fn is_sorted_fn)
{ {
t_usize sorted_part; t_usize sorted_part;
t_usize i; t_usize i;
t_ast_node tmp; t_ast_node tmp;
if (v == NULL) if (v == NULL)
return; return ;
sorted_part = v->len; sorted_part = v->len;
while (sorted_part > 0) while (sorted_part > 0)
{ {