summaryrefslogtreecommitdiffstats
path: root/src/m_funptr.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 20:57:09 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 20:57:09 +0200
commit39d80124439e6c164b5b0a758effe6df5a94b20e (patch)
tree41e323219a7d6fe69241ce795b8f53d1a1ec1000 /src/m_funptr.c
parentTODO update (diff)
download42-minishell-39d80124439e6c164b5b0a758effe6df5a94b20e.tar.gz
42-minishell-39d80124439e6c164b5b0a758effe6df5a94b20e.tar.bz2
42-minishell-39d80124439e6c164b5b0a758effe6df5a94b20e.tar.xz
42-minishell-39d80124439e6c164b5b0a758effe6df5a94b20e.tar.zst
42-minishell-39d80124439e6c164b5b0a758effe6df5a94b20e.zip
sqb in progress
Diffstat (limited to 'src/m_funptr.c')
-rw-r--r--src/m_funptr.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/m_funptr.c b/src/m_funptr.c
index 2fdf4d1..a6b31f2 100644
--- a/src/m_funptr.c
+++ b/src/m_funptr.c
@@ -22,14 +22,15 @@
void
init_buptr(t_msh *msh)
{
- msh->bu_ptr[0] = b_echo;
- msh->bu_ptr[1] = b_cd;
- msh->bu_ptr[2] = b_pwd;
- msh->bu_ptr[3] = b_export;
- msh->bu_ptr[4] = b_unset;
- msh->bu_ptr[5] = b_env;
- msh->bu_ptr[6] = b_exit;
- msh->bu_ptr[7] = b_type;
+ msh->bu_ptr[FT_ID_ECHO] = b_echo;
+ msh->bu_ptr[FT_ID_CD] = b_cd;
+ msh->bu_ptr[FT_ID_PWD] = b_pwd;
+ msh->bu_ptr[FT_ID_EXPORT] = b_export;
+ msh->bu_ptr[FT_ID_UNSET] = b_unset;
+ msh->bu_ptr[FT_ID_ENV] = b_env;
+ msh->bu_ptr[FT_ID_EXIT] = b_exit;
+ msh->bu_ptr[FT_ID_TYPE] = b_type;
+ msh->bu_ptr[FT_ID_SQB] = b_sqb;
if (!(msh->bu_ref = ft_split(FT_BUILTINS, '|')))
{
f_alloc_and_destroy_msh(msh);