From 2a57d3b97fb27fb24deaa4da894b01e1957a528b Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 3 Feb 2020 06:34:06 +0100 Subject: TODO list and basic plan --- include/minishell.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'include') diff --git a/include/minishell.h b/include/minishell.h index 2dc9a38..f47fc65 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -2,5 +2,34 @@ # define MINISHELL_H # include "libft.h" +# include "libft_ht.h" + + +typedef struct +{ + int argc; + char **argv; +} t_command; + +// void find_exe(char *name); + +typedef int t_status; + +/* +** +*/ + +/* +** builtin*.c +*/ + +typedef t_status (*t_builtin_func)(int argc, char **argv, char **envp); +t_builtin_func ms_echo; +t_builtin_func ms_cd; +t_builtin_func ms_pwd; +t_builtin_func ms_export; +t_builtin_func ms_unset; +t_builtin_func ms_env; +t_builtin_func ms_exit; #endif -- cgit