From 959294d57b03788b09935f98431c1360d1a3b442 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 7 May 2020 10:50:35 +0200 Subject: Preparing the structs --- src/ft_s_struct.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/ft_s_struct.h') diff --git a/src/ft_s_struct.h b/src/ft_s_struct.h index 58c4273..56c1eeb 100644 --- a/src/ft_s_struct.h +++ b/src/ft_s_struct.h @@ -26,12 +26,7 @@ ** 0: means no redirection */ -typedef struct s_lpipes -{ - char *com; - char **argv; - struct s_lpipes *next; -} t_lpipes; +typedef struct s_lpipes *t_lpipes; typedef struct s_lvars { @@ -47,9 +42,19 @@ typedef struct s_lcom int8_t redir; int32_t rdrfd; char *rdrpath; + struct s_lpipes *pipes; struct s_lcom *next; } t_lcom; +struct s_lpipes +{ + int32_t pipefd[2]; + char *com; + char **argv; + struct s_lcom *one; + struct s_lpipes *next; +}; + typedef struct s_msh { char **envp; -- cgit v1.2.3