aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/parse/cmd_parse.c1
-rwxr-xr-xsrc/parse/parse.c6
-rwxr-xr-xsrc/parse/redir_parse.c1
3 files changed, 1 insertions, 7 deletions
diff --git a/src/parse/cmd_parse.c b/src/parse/cmd_parse.c
index c655c5c..ef5a518 100755
--- a/src/parse/cmd_parse.c
+++ b/src/parse/cmd_parse.c
@@ -15,7 +15,6 @@ t_ast *push_cmd(t_ast *ast, t_ftlst *rest)
{
t_ftlst *new;
- /* new = rest->data; */
if (ast == NULL)
{
ast = ast_new(AST_CMD);
diff --git a/src/parse/parse.c b/src/parse/parse.c
index 37192b0..1fc24be 100755
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -7,6 +7,7 @@
#include "lexer.h"
// stdio.h est deja include dans minishell.h temporairement
// (comme ca on doit le retirer a un seul endroit a la fin)
+// oui je sais maintenant tu peux effacer se petit commantaire ;)
@@ -27,9 +28,7 @@ t_ret *parse(t_ftlst *input)
{
tag = ((t_token *)ret->rest->data)->tag;
if (parse_cmd_str_true_false(tag))
- {
ret->ast = push_cmd(ret->ast, ret->rest);
- }
else if (parse_redir_true_false(tag))
{
while(ret->rest != NULL)
@@ -40,10 +39,7 @@ t_ret *parse(t_ftlst *input)
else if (tag & TAG_IS_REDIR)
ret->rest = ret->rest->next;
else
- {
- //ret->rest = ret->rest->next;
break;
- }
tag = ((t_token *)ret->rest->data)->tag;
}
}
diff --git a/src/parse/redir_parse.c b/src/parse/redir_parse.c
index 839e37c..768506e 100755
--- a/src/parse/redir_parse.c
+++ b/src/parse/redir_parse.c
@@ -12,7 +12,6 @@ t_ast *push_redir(t_ast *ast, t_ftlst *rest)
{
t_ftlst *new;
- /* new = rest->data; */
if (ast == NULL)
{
ast = ast_new(AST_CMD);