diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_lcom.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 4a57f7b..3f5f81a 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -40,16 +40,21 @@ void ptr = msh->curr; while (ptr != NULL) { - if (ptr->com) + if (ptr->pipes) + { + ft_printf("%s\n", ptr->pipes->one->com); + if ((bu_id = ft_get_builtin_id(ptr->pipes->one->com, msh)) + < FT_BUILTINS_COUNT) + ft_e_builtin(ptr->pipes->one, bu_id, msh); + else + ft_e_extern(ptr->pipes->one, msh); + } + else if (ptr->com) { if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) - { ft_e_builtin(ptr, bu_id, msh); - } else - { ft_e_extern(ptr, msh); - } } ptr = ptr->next; } |