aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/parse.c')
-rwxr-xr-xsrc/parse/parse.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c
index d1303bc..37192b0 100755
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -49,19 +49,17 @@ t_ret *parse(t_ftlst *input)
}
ret->rest = ret->rest->next;
}
- // printf("===========cmd=============\n");
- // while(ret->ast->cmd_argv != NULL)
- // {
- // printf("[%s]\n", ((t_token *)ret->ast->cmd_argv->data)->content);
- // ret->ast->cmd_argv = ret->ast->cmd_argv->next;
- // }
- // printf("=========redir============\n");
- // while(ret->ast->redirs != NULL)
- // {
- // printf("[%s]\n", ((t_token *)ret->ast->redirs->data)->content);
- // ret->ast->redirs = ret->ast->redirs->next;
- // }
- //ast_destroy(ret->ast);
- //ft_lstdestroy(&ret->rest, (void (*)(void*))token_destroy);
+ /* while(ret->ast->cmd_argv != NULL) */
+ /* { */
+ /* printf("[%s]\n", ((t_token *)ret->ast->cmd_argv->data)->content); */
+ /* ret->ast->cmd_argv = ret->ast->cmd_argv->next; */
+ /* } */
+ /* while(ret->ast->redirs != NULL) */
+ /* { */
+ /* printf("[%s]\n", ((t_token *)ret->ast->redirs->data)->content); */
+ /* ret->ast->redirs = ret->ast->redirs->next; */
+ /* } */
+ /* ast_destroy(ret->ast); */
+ /* ft_lstdestroy(&ret->rest, (void (*)(void*))token_destroy); */
return first;
}