diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-24 20:57:09 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-24 20:57:09 +0200 |
commit | 39d80124439e6c164b5b0a758effe6df5a94b20e (patch) | |
tree | 41e323219a7d6fe69241ce795b8f53d1a1ec1000 /src/m_funptr.c | |
parent | TODO update (diff) | |
download | 42-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 '')
-rw-r--r-- | src/m_funptr.c | 17 |
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); |