diff options
| author | Dominik Kaiser | 2025-01-20 18:49:32 +0100 |
|---|---|---|
| committer | GitHub | 2025-01-20 18:49:32 +0100 |
| commit | 63a78c5ecea8acf1d8d7096bc693f4b489c3aab4 (patch) | |
| tree | b257a3786ded25e3d1bd9b1071a85cd3b6fe9f60 /src/parser.c | |
| parent | 9fa887da20e409c2f25fac44b57f999e508a30ea (diff) | |
| parent | ee1ea5ebfd335580cae3f05c814887547e10ac2b (diff) | |
| download | minishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.tar.gz minishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.zip | |
Merge pull request #31 from dpu-kaiser/some-fixes
Some fixes
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.c b/src/parser.c index aef8d70..75f1c64 100644 --- a/src/parser.c +++ b/src/parser.c @@ -6,14 +6,14 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/29 15:53:29 by dkaiser #+# #+# */ -/* Updated: 2025/01/19 18:59:00 by chuhlig ### ########.fr */ +/* Updated: 2025/01/20 17:57:20 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ +#include "env.h" #include "libft.h" #include "minishell.h" #include "token.h" -#include "env.h" static t_token *find_token_by_type(t_token *tokens, int type); t_token *split_at_first(t_token **tokens, int type); @@ -40,7 +40,7 @@ static t_node *parse_statement(t_token *tokens, t_env **env) if (left_side_tokens == NULL) { free_tokens(tokens); - tokens = NULL;//1 + tokens = NULL; return (NULL); } else if (tokens != NULL) @@ -71,7 +71,7 @@ t_token *split_at_first(t_token **tokens, int type) if (result == split) result = NULL; free_token(split); - split = NULL;//1 + split = NULL; return (result); } |
