diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 20:14:00 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 20:14:00 +0200 |
commit | aeb1dec54283f4506f47893923b29a71499353de (patch) | |
tree | 22e3b5df1910ccd52804987205adfe705c72bec6 | |
parent | Huge fixes and stack stuff (diff) | |
download | 42-minishell-aeb1dec54283f4506f47893923b29a71499353de.tar.gz 42-minishell-aeb1dec54283f4506f47893923b29a71499353de.tar.bz2 42-minishell-aeb1dec54283f4506f47893923b29a71499353de.tar.xz 42-minishell-aeb1dec54283f4506f47893923b29a71499353de.tar.zst 42-minishell-aeb1dec54283f4506f47893923b29a71499353de.zip |
Init fix
-rw-r--r-- | src/d_define.h | 2 | ||||
-rw-r--r-- | src/m_funptr.c | 4 | ||||
-rw-r--r-- | src/s_struct.h | 1 |
3 files changed, 1 insertions, 6 deletions
diff --git a/src/d_define.h b/src/d_define.h index e0ca360..b905d5f 100644 --- a/src/d_define.h +++ b/src/d_define.h @@ -19,7 +19,7 @@ ** ====== CLASSICS ====== */ -#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type|[|alias" +#define FT_BUILTINS "echo:cd:pwd:export:unset:env:exit:type:[:alias" /* ** ====== PSX ====== diff --git a/src/m_funptr.c b/src/m_funptr.c index 1983e73..bb8d80d 100644 --- a/src/m_funptr.c +++ b/src/m_funptr.c @@ -32,8 +32,4 @@ void msh->bu_ptr[FT_ID_TYPE] = b_type; msh->bu_ptr[FT_ID_SQB] = b_sqb; msh->bu_ptr[FT_ID_ALIAS] = b_alias; - if ((msh->bu_ref = ft_split(FT_BUILTINS, '|')) == NULL) - { - f_alloc_and_destroy_msh(msh); - } } diff --git a/src/s_struct.h b/src/s_struct.h index ba56e82..871b0f4 100644 --- a/src/s_struct.h +++ b/src/s_struct.h @@ -81,7 +81,6 @@ typedef struct s_msh struct s_lvars *vars; struct s_lalias *alias; char **envp; - char **bu_ref; char ps[4][1024]; char env_fork_tmp[128][4096]; char sqb_ref[FT_ID_SQB_COUNT][4]; |