-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminishell.h
31 lines (27 loc) · 1.37 KB
/
minishell.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minishell.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mjlem <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/25 19:49:12 by mjlem #+# #+# */
/* Updated: 2022/08/13 15:27:07 by mjlem ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
# define MINISHELL_H
# include "./libft/libft.h"
# include "./parse/parse.h"
# include "./exec/execution.h"
# include <signal.h>
t_node *parser(char *line, t_env *lst_env);
t_token *expand_var(t_token *tokens, t_env *list_env);
void ft_readline(t_env **lst_env);
void interpret_cmd(t_node *cmd, t_env **lst_env);
void check_cmd(char **cmd, t_env **lst_env);
void cmd_error(t_node *cmd);
void free_cmd(t_node *cmd);
int empty_line(char *line);
void free_token_lst(t_token *tokens);
#endif