summaryrefslogtreecommitdiffstats
path: root/src/ft_m_funptr.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 18:34:29 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 18:34:29 +0200
commit92c184c047323fb557d98c4d7e7c884e474c762e (patch)
tree8dc8b78b812b93aaeffc19d0dbbfa1bee24484f3 /src/ft_m_funptr.c
parentMessy echo (diff)
download42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.gz
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.bz2
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.xz
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.zst
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.zip
Builtin exit is bav
Diffstat (limited to 'src/ft_m_funptr.c')
-rw-r--r--src/ft_m_funptr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ft_m_funptr.c b/src/ft_m_funptr.c
index 813e5a3..bf2824e 100644
--- a/src/ft_m_funptr.c
+++ b/src/ft_m_funptr.c
@@ -12,9 +12,8 @@
#include <libft.h>
#include <stdlib.h>
-#include "ft_b_echo.h"
-#include "ft_b_env.h"
#include "ft_d_enum.h"
+#include "ft_b_builtins.h"
#include "ft_f_fail.h"
#include "ft_m_funptr.h"
#include "ft_s_struct.h"
@@ -28,8 +27,8 @@ void
/* 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;
+ /* TODO: them builtins */
if (!(msh->bu_ref = ft_split(FT_BUILTINS, '|')))
{
ft_fail_alloc();