From 535ce22f99694460f32030db9655206a9341c6da Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 14 Jan 2020 17:35:35 +0100 Subject: basic stack functions --- src/common/action.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/common/action.h (limited to 'src/common/action.h') diff --git a/src/common/action.h b/src/common/action.h new file mode 100644 index 0000000..d458c49 --- /dev/null +++ b/src/common/action.h @@ -0,0 +1,19 @@ +#ifndef ACTION_H +# define ACTION_H + +# include "stack.h" + +void swap_a(t_stack *a); +void swap_b(t_stack *b); +void swap_both(t_stack *a, t_stack *b); +void push_a(t_stack *a, t_stack *b); +void push_b(t_stack *b, t_stack *a); +void rotate_a(t_stack *a); +void rotate_b(t_stack *b); +void rotate_both(t_stack *a, t_stack *b); +void reverse_rotate_a(t_stack *a); +void reverse_rotate_b(t_stack *b); +void reverse_rotate_both(t_stack *a, t_stack *b); + + +#endif -- cgit