diff options
Diffstat (limited to 'ft_list_remove_if.s')
| -rw-r--r-- | ft_list_remove_if.s | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ft_list_remove_if.s b/ft_list_remove_if.s index 5a2fd8b..40e2415 100644 --- a/ft_list_remove_if.s +++ b/ft_list_remove_if.s @@ -10,7 +10,7 @@ ; ; ; **************************************************************************** ; -global _ft_list_remove_if +global ft_list_remove_if extern _free @@ -33,7 +33,7 @@ extern _free ; ft_list_remove_if(t_list **begin_list, void *data_ref, ; int (*cmp)(void *data, void *data_ref), ; void (*free_fct)(void *)) -_ft_list_remove_if: +ft_list_remove_if: ; t_list *saved_next ; === prolog === @@ -50,7 +50,7 @@ _ft_list_remove_if: ; === compare (*begin_list)->data and data_ref EXTERN_FUNCTION_SAVE mov rdi, [rdi] - mov rdi, [rdi + 0] + mov rdi, [rdi + 0] call rdx ; cmp((*begin_list)->data, data_ref) EXTERN_FUNCTION_SAVE_END cmp rax, 0 @@ -60,7 +60,7 @@ _ft_list_remove_if: push rdi mov rdi, [rdi] lea rdi, [rdi + 8] - call _ft_list_remove_if + call ft_list_remove_if pop rdi jmp FT_LIST_REMOVE_IF_END @@ -85,7 +85,7 @@ FT_LIST_REMOVE_IF_REMOVE: mov rax, [rbp - 8] mov [rdi], rax - call _ft_list_remove_if + call ft_list_remove_if FT_LIST_REMOVE_IF_END: ; === epilog === |
