summaryrefslogtreecommitdiffstats
path: root/src/ft_e_lcom.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_e_lcom.c13
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);
}