diff options
Diffstat (limited to 'src/common/stack_helper.c')
| -rw-r--r-- | src/common/stack_helper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/stack_helper.c b/src/common/stack_helper.c index 968060f..fd6f0c5 100644 --- a/src/common/stack_helper.c +++ b/src/common/stack_helper.c @@ -6,25 +6,25 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/19 06:40:18 by cacharle #+# #+# */ -/* Updated: 2020/01/22 10:22:54 by cacharle ### ########.fr */ +/* Updated: 2021/09/09 09:53:59 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "common.h" -inline void stack_swap_2(t_stack *stack_a, t_stack *stack_b) +inline void stack_swap_2(t_stack *stack_a, t_stack *stack_b) { stack_swap(stack_a); stack_swap(stack_b); } -inline void stack_rotate_2(t_stack *stack_a, t_stack *stack_b) +inline void stack_rotate_2(t_stack *stack_a, t_stack *stack_b) { stack_rotate(stack_a); stack_rotate(stack_b); } -inline void stack_reverse_rotate_2(t_stack *stack_a, t_stack *stack_b) +inline void stack_reverse_rotate_2(t_stack *stack_a, t_stack *stack_b) { stack_reverse_rotate(stack_a); stack_reverse_rotate(stack_b); @@ -35,7 +35,7 @@ inline t_bool stack_empty(t_stack *stack) return (stack->top == -1); } -inline int stack_length(t_stack *stack) +inline int stack_length(t_stack *stack) { return (stack->top + 1); } |
