-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.h
57 lines (51 loc) · 1.46 KB
/
structs.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* structs.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bde-sous <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/30 16:03:01 by bde-sous #+# #+# */
/* Updated: 2023/10/05 17:20:49 by bde-sous ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STRUCTS_H
# define STRUCTS_H
typedef enum s_token_type{
command,
flag,
redirectL,
dredirectL,
redirectR,
dredirectR,
pipo,
text,
file
} t_tokentype;
typedef struct s_envp{
char *var;
char *key;
int equal;
struct s_envp *next;
} t_envp;
typedef struct s_token{
char *t;
t_tokentype type;
int total;
int index;
int end;
int pipe;
int expandenv;
} t_token;
typedef struct s_info{
char *str;
t_envp *tenv;
char **envp;
t_token *tokens;
int exit_code;
int ordem;
int fds[2];
int flag_stop;
int pid;
} t_info;
#endif