-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpush_swap.h
44 lines (36 loc) · 1.44 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* push_swap.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ioulkhir <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/01 16:25:54 by ioulkhir #+# #+# */
/* Updated: 2025/01/07 10:43:17 by ioulkhir ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PUSH_SWAP_H
# define PUSH_SWAP_H
# include <stdlib.h>
# include <unistd.h>
# include "push_swap_lang/language.h"
# include "stack/stack.h"
# include <limits.h>
typedef struct s_parsed_data
{
int argc;
char malloc_error;
char validation_error;
t_mystack *stack_a;
t_mystack *stack_b;
int *LIS;
int LIS_len;
} t_parsed_data;
# include "algorithm/algorithm.h"
#define NOT_SET -314
#define NO_ERR 1
#define ERR 0
t_parsed_data get_my_data(int ac, char **av);
t_mystack *init_stack(int ac, char **av);
char validate_args(int ac, char **av);
#endif