diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 16:56:23 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 16:56:23 +0200 |
commit | 0ab424df075f09aac376890a9a5a73cb74e053bf (patch) | |
tree | 7dab35480c6005f3bbc7ed864410bf04da9dd0bd /src/s_struct.h | |
parent | TODO update (diff) | |
download | 42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.gz 42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.bz2 42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.xz 42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.zst 42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.zip |
alias in progress
Diffstat (limited to '')
-rw-r--r-- | src/s_struct.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/s_struct.h b/src/s_struct.h index 31c80fc..b45af9f 100644 --- a/src/s_struct.h +++ b/src/s_struct.h @@ -18,6 +18,20 @@ #include "d_define.h" +typedef struct s_lalias +{ + char *name; + char *value; + struct s_lalias *next; +} t_lalias; + +typedef struct s_lvars +{ + struct s_lvars *next; + char *name; + char *val; +} t_lvars; + /* ** redir(int8_t) index ** ------------------- @@ -27,13 +41,6 @@ ** 0: means no redirection */ -typedef struct s_lvars -{ - struct s_lvars *next; - char *name; - char *val; -} t_lvars; - typedef struct s_com { char **argv; @@ -71,6 +78,7 @@ typedef struct s_msh struct s_com *com; struct s_lpipes *pipes; struct s_lvars *vars; + struct s_lalias *alias; char **envp; char **bu_ref; char ps[4][1024]; |