summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-15 20:14:00 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-15 20:14:00 +0200
commitaeb1dec54283f4506f47893923b29a71499353de (patch)
tree22e3b5df1910ccd52804987205adfe705c72bec6
parentHuge fixes and stack stuff (diff)
download42-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.h2
-rw-r--r--src/m_funptr.c4
-rw-r--r--src/s_struct.h1
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];