diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-12 20:43:30 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-12 20:43:30 +0200 |
commit | ff116f01c3680d0e5d8c32dd9978ed05a37f800c (patch) | |
tree | 73765e5ac7ea4ec8af461f44f6d8288fdad6fd82 /src/e_builtins.c | |
parent | Lots of stuff to do (diff) | |
download | 42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.gz 42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.bz2 42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.xz 42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.zst 42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.zip |
FeelsCleanMan
Diffstat (limited to 'src/e_builtins.c')
-rw-r--r-- | src/e_builtins.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c index 7b074af..c00114d 100644 --- a/src/e_builtins.c +++ b/src/e_builtins.c @@ -20,11 +20,11 @@ #include "b_export_mute.h" #include "m_redirs.h" #include "s_destroy.h" -#include "s_lcom.h" +#include "s_line.h" #include "s_struct.h" static void - e_export_env_fork(const t_lcom *ptr, + e_export_env_fork(const t_com *ptr, t_msh *msh) { char **re_ptr; @@ -38,7 +38,7 @@ static void } static void - e_builtin_child(const t_lcom *ptr, + e_builtin_child(const t_com *ptr, uint8_t bu_id, t_msh *msh) { @@ -48,14 +48,14 @@ static void e_export_env_fork(ptr, msh); dup_redirs(ptr, msh); ret = msh->bu_ptr[bu_id](ptr->argv + 1, msh); - lcom_clear(&msh->curr); + s_line_clear(&msh->curr); s_destroy(msh); exit(ret); } static void e_builtin_parent(pid_t pid, - const t_lcom *ptr, + const t_com *ptr, uint8_t bu_id, t_msh *msh) { @@ -73,14 +73,14 @@ static void b_export_mute(ptr->argv + 1, msh); else if (bu_id == FT_ID_EXIT && ret == 0) { - lcom_clear(&msh->curr); + s_line_clear(&msh->curr); s_destroy(msh); exit(ret); } } void - e_builtin(const t_lcom *ptr, + e_builtin(const t_com *ptr, uint8_t bu_id, t_msh *msh) { |