diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 22:24:25 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 22:24:25 +0200 |
commit | fe24a254415b38952eeef8f0ca4e830549360850 (patch) | |
tree | f51808f7ed9ccc7840878de4d1c9d5408c6eaa45 /src/ft_e_lcom.c | |
parent | Wrong address (diff) | |
download | 42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.gz 42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.bz2 42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.xz 42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.zst 42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.zip |
Pretty good start
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_lcom.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 5624457..c592f3c 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -30,23 +30,22 @@ static uint8_t } int32_t - ft_e_lcom(t_lcom *lcom, - t_msh *msh) + ft_e_lcom(t_msh *msh) { uint8_t bu_id; - while (lcom != NULL) + while (msh->lcom_head != NULL) { - ft_printf("qwe\n"); - if ((bu_id = ft_get_builtin_id(lcom->com, msh)) < FT_BUILTINS_COUNT) + if ((bu_id = ft_get_builtin_id(msh->lcom_head->com, msh)) + < FT_BUILTINS_COUNT) { - msh->bu_ptr[bu_id](msh); + msh->bu_ptr[bu_id](msh->lcom_head->args, msh); } else { /* TODO: exec path stuff */ } - lcom = lcom->next; + msh->lcom_head = msh->lcom_head->next; } return (0); } |