diff options
| author | nass1pro <nass1pro@gmail.com> | 2020-06-16 11:49:29 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-16 13:56:35 +0200 |
| commit | b805f77cc96b1ff5482aa2ee2004bf74ebe402f0 (patch) | |
| tree | f6b06a3fffa9fb81a47910919b616a5f1fadf6d2 /src/parse | |
| parent | 9b4703d4d841366f018555d3b9d5f9377ae5dab1 (diff) | |
| download | minishell-b805f77cc96b1ff5482aa2ee2004bf74ebe402f0.tar.gz minishell-b805f77cc96b1ff5482aa2ee2004bf74ebe402f0.tar.bz2 minishell-b805f77cc96b1ff5482aa2ee2004bf74ebe402f0.zip | |
Test travis
Diffstat (limited to 'src/parse')
| -rwxr-xr-x | src/parse/parse.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c index 867325b..fe4f9a2 100755 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -43,21 +43,24 @@ t_ret *parse(t_ftlst *input) if (tag & TAG_IS_STR && tag & TAG_STICK) ret->rest = ret->rest->next; else + { + ret->rest = ret->rest->next; break; + } } } } - 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); + /* 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; } |
