aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-01 23:16:47 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-01 23:21:25 +0200
commitf66cb8f28a2779159baeef6ea91a7684d59cc295 (patch)
treeeda02dc289d25a776cb347f45d54e34476190f2b /include
parent1ff9504c6b6f4c8bcebb75935b2d999f6c7b018c (diff)
downloadminishell-f66cb8f28a2779159baeef6ea91a7684d59cc295.tar.gz
minishell-f66cb8f28a2779159baeef6ea91a7684d59cc295.tar.bz2
minishell-f66cb8f28a2779159baeef6ea91a7684d59cc295.zip
Changed representation of environment to vector
Diffstat (limited to 'include')
-rw-r--r--include/minishell.h7
1 files changed, 4 insertions, 3 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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