From f66cb8f28a2779159baeef6ea91a7684d59cc295 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 1 Apr 2020 23:16:47 +0200 Subject: Changed representation of environment to vector --- include/minishell.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/minishell.h b/include/minishell.h index b883fc2..ac00875 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/04/01 17:54:36 by charles ### ########.fr */ +/* Updated: 2020/04/01 22:13:47 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -33,6 +33,7 @@ # include "libft_ht.h" # include "libft_lst.h" # include "libft_util.h" +# include "libft_vec.h" /* ** \brief Value of pipe entry if closed @@ -55,7 +56,7 @@ # define BUILTIN_NOT_FOUND -2 typedef t_ftht* t_path; -typedef t_ftht* t_env; +typedef t_ftvec* t_env; /* ** path.c @@ -68,7 +69,7 @@ t_path path_update(t_path path, char *path_var); */ t_env env_from_array(char **envp); -char **env_to_array(t_env env); +char *env_search(t_env env, char *key); /* ** builtin*.c - directory with all builtin commands -- cgit