From fe24a254415b38952eeef8f0ca4e830549360850 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 20 Apr 2020 22:24:25 +0200 Subject: Pretty good start --- src/ft_e_lcom.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/ft_e_lcom.c') 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); } -- cgit v1.2.3