aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristopher Uhlig2025-01-25 13:01:10 +0100
committerChristopher Uhlig2025-01-25 13:01:10 +0100
commit87b90103930d83d74baa998866b0995cb8887d51 (patch)
tree0eb876341c2794f2165b83c1d339fb3b38e9f711 /include
parent18fb7cb8ae69fc3439266a154aa6b0f947d6805d (diff)
downloadminishell-87b90103930d83d74baa998866b0995cb8887d51.tar.gz
minishell-87b90103930d83d74baa998866b0995cb8887d51.zip
fixed leaks in tokenizer and collectargs also fixed seg for < > and improved value add by $ use
Diffstat (limited to 'include')
-rw-r--r--include/minishell.h4
-rw-r--r--include/token.h7
2 files changed, 6 insertions, 5 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 06abb04..97e22cb 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */
-/* Updated: 2025/01/21 20:20:09 by chuhlig ### ########.fr */
+/* Updated: 2025/01/23 23:17:00 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -34,7 +34,7 @@ void repl(const char *prompt, t_env **env, int *promptflag);
t_node *parse(t_token *tokens, t_env **env);
t_node *parse_cmd(t_token *tokens, t_env **env);
-t_redirection *collect_redirs(t_token **tokens, t_env *env, t_list **cf);
+t_redirection *collect_redirs(t_token **tokens, t_env *env, t_list **create_files);
void print_ast(t_node *ast);
diff --git a/include/token.h b/include/token.h
index 67d5737..fb9633d 100644
--- a/include/token.h
+++ b/include/token.h
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 13:27:18 by dkaiser #+# #+# */
-/* Updated: 2025/01/22 17:27:48 by dkaiser ### ########.fr */
+/* Updated: 2025/01/25 11:42:01 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -50,6 +50,7 @@ void tokenizer(char *s, t_token **token_list,
char quote_check);
void print_token(t_token *token);
-void free_token2(t_token *token);
-void free_token_and_connect2(t_token *token);
+void free_token2(t_token *token);
+void free_token_and_connect2(t_token *token);
+
#endif