From d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 7 May 2020 14:33:49 +0200 Subject: UFS reinstall, will finish pipes later --- src/ft_e_lcom.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/ft_e_lcom.c') 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; } -- cgit v1.2.3