-
Notifications
You must be signed in to change notification settings - Fork 0
/
push_swap.h
67 lines (57 loc) · 2.04 KB
/
push_swap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* push_swap.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <lgasc@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/14 22:06:10 by lgasc #+# #+# */
/* Updated: 2024/02/22 20:40:20 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PUSH_SWAP_H
# define PUSH_SWAP_H
# include <stddef.h>
# include <stdlib.h>
//# include "libft/libft.h"
//# include "ft_lis.h"
# include "stacks.h"
# ifdef TEST
# include "ft_printf/ft_printf.h"
# endif
void ft_swap_a(struct s_stacks *stacks);
void ft_swap_b(void);
void ft_shovel_swap(void);
void ft_push_to_a(struct s_stacks *stacks);
void ft_push_to_b(struct s_stacks *stacks);
void ft_raise_a(const struct s_stacks *stacks);
void ft_raise_b(const struct s_stacks *stacks);
void ft_rake_raise(struct s_stacks *stacks);
void ft_refurb_a(struct s_stacks *stacks);
void ft_refurb_b(struct s_stacks *stacks);
void ft_rake_refurb(struct s_stacks *stacks);
//void gnome_sort(int *destination, int *source) __attribute__ ((nonnull));
# ifndef __clang__
# ifdef TEST
//typedef struct __attribute__ ((designated_init)) __attribute__ ((deprecated))
//{
// enum e_result_type type;
// union
// {
// enum e_atoi_error error;
// };
//} t_parse_result;
# define PUSH_SWAP_H_ATTRIBUTES
# endif
# endif
# ifndef PUSH_SWAP_H_ATTRIBUTES
//typedef struct
//{
// enum e_result_type type;
// union
// {
// enum e_atoi_error error;
// };
//} t_parse_result;
# endif
#endif