/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* minishell.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ /* Updated: 2020/02/28 15:30:10 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include // for debugging - dont remove #ifndef MINISHELL_H # define MINISHELL_H /** ** \file minishell.h ** \brief Common header */ # include # include # include # include # include # include # include # include # include # include "libft.h" # include "libft_ht.h" # include "libft_lst.h" # include "libft_util.h" # include "ms_parse.h" // # include "ms_eval.h" /** ** \brief Value of pipe entry if closed */ # define PIPE_CLOSED -1 /** ** \brief Pipe write index */ # define PIPE_WRITE 1 /** ** \brief Pipe read index */ # define PIPE_READ 0 typedef t_ftht* t_path; typedef t_ftht* t_env; /* ** path.c */ t_path ms_path_update(t_path path, char *path_var); /* ** env.c */ t_env ms_env_from_array(char **envp); char **ms_env_to_array(t_env env); /* ** builtin*.c - directory with all builtin commands */ int ms_echo(char **argv); int ms_cd(t_env env, char **argv); int ms_pwd(void); int ms_export(t_env env, char **argv); int ms_unset(t_env env, char **argv); int ms_env(t_env env); int ms_exit(void); /* ** util.c - various utilitary functions */ void ms_ht_del_str_entry(t_ftht_entry *entry); #endif