aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-06-18 14:05:42 +0200
committernass1pro <nass1pro@gmail.com>2020-06-18 14:05:42 +0200
commit1e53dcdbd4f94a11a6d23687bc518fdd8aee0bd9 (patch)
tree64c9fdfb2f9d055404d72160e9d0f679809e7426 /include/minishell.h
parent70459a3ab97b13df9bf829e29ed91becfba1ea03 (diff)
parent52bc3c1a6035dae4e45015c48a8c65681a31512a (diff)
downloadminishell-1e53dcdbd4f94a11a6d23687bc518fdd8aee0bd9.tar.gz
minishell-1e53dcdbd4f94a11a6d23687bc518fdd8aee0bd9.tar.bz2
minishell-1e53dcdbd4f94a11a6d23687bc518fdd8aee0bd9.zip
Merge branch 'master' into parse_cmd
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 97b12e4..5f4f56a 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/06/15 09:47:20 by charles ### ########.fr */
+/* Updated: 2020/06/18 13:45:27 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -42,18 +42,6 @@
# define PIPE_CLOSED -1
-/*
-** \brief Pipe write index
-*/
-
-# define PIPE_WRITE 1
-
-/*
-** \brief Pipe read index
-*/
-
-# define PIPE_READ 0
-
# define BUILTIN_NOT_FOUND -2
typedef t_ftht* t_path;
@@ -70,8 +58,10 @@ t_path path_update(t_path path, char *path_var);
*/
t_env env_from_array(char **envp);
+int env_keycmp(char *var, char *key);
char *env_search(t_env env, char *key);
char *env_search_first_match(t_env env, const char *haystack);
+char *env_export(t_env env, char *key, char *value);
/*
** builtin*.c - directory with all builtin commands