From aeb1dec54283f4506f47893923b29a71499353de Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 15 Sep 2020 20:14:00 +0200 Subject: Init fix --- src/d_define.h | 2 +- src/m_funptr.c | 4 ---- src/s_struct.h | 1 - 3 files changed, 1 insertion(+), 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]; -- cgit v1.2.3