summaryrefslogtreecommitdiffstats
path: root/src/ft_s_struct.h
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-04-29 11:47:02 +0200
committersalad <fmoenne-@student.le-101.fr>2020-04-29 11:47:02 +0200
commit961bda4f42562bf8ceb70a888730362d021c5552 (patch)
tree820577dc790c3a8884c44b329d04a8d42ed1ca44 /src/ft_s_struct.h
parentsimple really (diff)
parentTrying vars (diff)
download42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.gz
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.bz2
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.xz
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.zst
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.zip
merge master into fmoenne_indahouse
Diffstat (limited to 'src/ft_s_struct.h')
-rw-r--r--src/ft_s_struct.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ft_s_struct.h b/src/ft_s_struct.h
index 38eeb43..5b99acb 100644
--- a/src/ft_s_struct.h
+++ b/src/ft_s_struct.h
@@ -26,6 +26,13 @@
** 0: means no redirection
*/
+typedef struct s_vars
+{
+ char *name;
+ char *val;
+ struct s_vars *next;
+} t_vars;
+
typedef struct s_lcom
{
char *com;
@@ -46,6 +53,7 @@ typedef struct s_msh
char **bu_ref;
uint8_t (*bu_ptr[FT_BUILTINS_COUNT])(char **, struct s_msh*);
struct s_lcom *curr;
+ struct s_vars *vars;
} t_msh;
#endif