summaryrefslogtreecommitdiffstats
path: root/src/ft_m_funptr.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
commit3349e8a37a9fdf78b82d6df1d310e39c78fcebb2 (patch)
tree88ec7499dbdd45293ae63b5b353c849e50c166e8 /src/ft_m_funptr.c
parentCool funptr (diff)
download42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.gz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.bz2
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.xz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.zst
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.zip
Trying linked lists
Diffstat (limited to '')
-rw-r--r--src/ft_m_funptr.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ft_m_funptr.c b/src/ft_m_funptr.c
index 682472b..4307d3c 100644
--- a/src/ft_m_funptr.c
+++ b/src/ft_m_funptr.c
@@ -10,22 +10,25 @@
/* */
/* ************************************************************************** */
+#include <stdlib.h>
+#include "ft_b_env.h"
+#include "ft_d_enum.h"
#include "ft_m_funptr.h"
#include "ft_s_struct.h"
void
ft_init_buptr(t_msh *msh)
{
- msh->bu_ptr[0] = ft_b_echo;
- msh->bu_ptr[1] = ft_b_cd;
- msh->bu_ptr[2] = ft_b_pwd;
- msh->bu_ptr[3] = ft_b_export;
- msh->bu_ptr[4] = ft_b_unset;
+ /* msh->bu_ptr[0] = ft_b_echo; */
+ /* msh->bu_ptr[1] = ft_b_cd; */
+ /* msh->bu_ptr[2] = ft_b_pwd; */
+ /* msh->bu_ptr[3] = ft_b_export; */
+ /* msh->bu_ptr[4] = ft_b_unset; */
msh->bu_ptr[5] = ft_b_env;
- msh->bu_ptr[6] = ft_b_exit;
- msh->bu_ptr[7] = ft_b_cat;
+ /* msh->bu_ptr[6] = ft_b_exit; */
+ /* msh->bu_ptr[7] = ft_b_cat; */
if (!(msh->bu_ref = ft_split(FT_BUILTINS, '|')))
{
- return ;
+ exit(FT_RET_ALLOC);
}
}