From 54f6c2a609d9b596e25cb9b98d10b40f8e816f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 14 Apr 2025 17:26:32 +0200 Subject: [PATCH] parsing: remove debugs --- src/parser/cmd_parsing.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/parser/cmd_parsing.c b/src/parser/cmd_parsing.c index 7d26f86..33f7f9b 100644 --- a/src/parser/cmd_parsing.c +++ b/src/parser/cmd_parsing.c @@ -6,7 +6,7 @@ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */ -/* Updated: 2025/04/14 17:18:21 by khais ### ########.fr */ +/* Updated: 2025/04/14 17:26:30 by khais ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,7 +23,6 @@ */ /* ** TODO Check if builder grows that destruction is appropriate. -** TODO Remove debugs ** TODO Add a function to write a message and set errno in case of allocation ** error. */ @@ -123,7 +122,6 @@ t_redirect *minishell_redir_parse(t_minishell *app, t_wordlist *tokens) t_worddesc *redir_specifier; t_redirect *new_redir; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); redir_list = NULL; while (is_redir(tokens->word)) { @@ -145,7 +143,6 @@ t_cmd *minishell_simple_parse(t_minishell *app, t_wordlist *tokens) t_cmd *simple; t_redirect *redir; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); simple = ft_calloc(1, sizeof(t_cmd)); if (!simple) { @@ -203,7 +200,6 @@ t_cmd *minishell_group_or_smp_parse(t_minishell *app, t_wordlist *tokens) t_cmd *subtree; t_cmd *group; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); if (tokens->word->token_type == OPEN_PARENTH_TOKEN) { worddesc_destroy(wordlist_pop(&tokens)); @@ -239,7 +235,6 @@ t_cmd *minishell_opt_cmds_parse(t_minishell *app, t_wordlist *tokens, t_worddesc *token; t_cmd *opt; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); token = tokens->word; if (token->token_type == OR_TOKEN || token->token_type == AND_TOKEN) { @@ -290,7 +285,6 @@ t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens) t_cmd *opt; t_cmd *pipeline; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); subtree = minishell_group_or_smp_parse(app, tokens); if (!subtree) return (NULL); @@ -324,7 +318,6 @@ t_cmd *minishell_cmds_parse(t_minishell *app, t_wordlist *tokens) t_cmd *list; t_connector connec; - ft_printf("%s() %s\n", __FUNCTION__, tokens->word->word); subtree = minishell_pipeline_parse(app, tokens); if (!subtree) return (NULL);