Browse Source

[mod] pipe_redir structure: modifications.

Moul 2 years ago
parent
commit
f0adb71486
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/struct.h

+ 6 - 7
src/struct.h

@@ -98,21 +98,20 @@ typedef struct			s_redir
 }						t_redir;
 
 /*
-** left_txt: could be cmd or redirection
+** itxt: could be cmd or redirection
 ** ifd: input fd: 1 for piping
-** "|", ">", ">>", "<", "<<"
+** operator: "|", ">", ">>", "<", "<<"
 ** ofd: output fd: 0 for piping
-** right_txt: could be cmd or nothing (NULL)
+** otxt: could be cmd or nothing (NULL)
 */
 
 typedef struct			s_pipe_redir
 {
-	char				*left_txt;
+	char				*itxt;
 	int					ifd;
-	char				*separator;
+	char				*operator;
 	int					ofd;
-	char				*right_txt;
-	struct s_pipe_redir *next;
+	char				*otxt;
 }						t_pipe_redir;
 
 #endif