|
@ -6,7 +6,7 @@ |
|
|
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */ |
|
|
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */ |
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
/* Created: 2022/05/02 13:50:44 by narnaud #+# #+# */ |
|
|
/* Created: 2022/05/02 13:50:44 by narnaud #+# #+# */ |
|
|
/* Updated: 2022/05/06 11:38:29 by narnaud ### ########.fr */ |
|
|
/* Updated: 2022/05/06 11:49:32 by narnaud ### ########.fr */ |
|
|
/* */ |
|
|
/* */ |
|
|
/* ************************************************************************** */ |
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
|
@ -50,8 +50,8 @@ typedef struct s_datas |
|
|
// ----------------------------------Utils.c
|
|
|
// ----------------------------------Utils.c
|
|
|
int is_empty(char *line); |
|
|
int is_empty(char *line); |
|
|
void halt(int ret_code); |
|
|
void halt(int ret_code); |
|
|
void termios(int ctl); |
|
|
|
|
|
void sigs_handler(int sig_num); |
|
|
void sigs_handler(int sig_num); |
|
|
|
|
|
void nothing(int sig_num); |
|
|
void handle_status(t_datas *datas, int status); |
|
|
void handle_status(t_datas *datas, int status); |
|
|
|
|
|
|
|
|
// ----------------------------------Builtins.c
|
|
|
// ----------------------------------Builtins.c
|
|
@ -74,7 +74,6 @@ pid_t caller(t_datas *datas, t_command *cmd); |
|
|
int piper(t_datas *datas, t_command *cmd); |
|
|
int piper(t_datas *datas, t_command *cmd); |
|
|
|
|
|
|
|
|
// ----------------------------------Parser.c
|
|
|
// ----------------------------------Parser.c
|
|
|
|
|
|
|
|
|
typedef enum e_type |
|
|
typedef enum e_type |
|
|
{ |
|
|
{ |
|
|
WORD, |
|
|
WORD, |
|
@ -97,7 +96,6 @@ void update_redir(t_datas *datas, t_command *cmd, t_token *tok); |
|
|
t_command *parser(t_datas *datas, t_token *tok, t_command *prev); |
|
|
t_command *parser(t_datas *datas, t_token *tok, t_command *prev); |
|
|
|
|
|
|
|
|
// ----------------------------------Lexer.c
|
|
|
// ----------------------------------Lexer.c
|
|
|
|
|
|
|
|
|
typedef enum e_state |
|
|
typedef enum e_state |
|
|
{ |
|
|
{ |
|
|
OLD_ST, |
|
|
OLD_ST, |
|
|