summaryrefslogtreecommitdiffstats
path: root/src/ft_e_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-05-11 15:52:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-05-11 15:52:11 +0200
commit4cdd3e31e7181a10e83e993f92e8d6606e978a2d (patch)
tree2ea42522239dcbb210941635ccc1a23e788e6244 /src/ft_e_lcom.c
parentUFS reinstall, will finish pipes later (diff)
download42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.gz
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.bz2
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.xz
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.zst
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.zip
New files
Diffstat (limited to '')
-rw-r--r--src/ft_e_lcom.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c
index 3f5f81a..54db581 100644
--- a/src/ft_e_lcom.c
+++ b/src/ft_e_lcom.c
@@ -11,9 +11,12 @@
/* ************************************************************************** */
#include <libft.h>
+#include <stdint.h>
#include "ft_e_builtins.h"
#include "ft_e_externs.h"
+#include "ft_e_pipes.h"
+#include "ft_s_lpipes.h"
#include "ft_s_struct.h"
static uint8_t
@@ -42,12 +45,7 @@ void
{
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);
+ ft_e_pipes(ptr, msh);
}
else if (ptr->com)
{