From 86e658fcca6162d126efd9b379aff29349d7cb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 14 Apr 2025 17:36:04 +0200 Subject: [PATCH] parsing: rename minishell_group_or_smp_parse -> minishell_group_or_simple_parse --- src/parser/cmd_parsing.c | 8 ++++---- src/parser/cmd_parsing.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/parser/cmd_parsing.c b/src/parser/cmd_parsing.c index a855006..f0c6d2a 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:37:24 by khais ### ########.fr */ +/* Updated: 2025/04/14 17:37:38 by khais ### ########.fr */ /* */ /* ************************************************************************** */ @@ -102,7 +102,7 @@ t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_wordlist *tokens) { token = wordlist_pop(&tokens); worddesc_destroy(token); - opt = minishell_group_or_smp_parse(app, tokens); + opt = minishell_group_or_simple_parse(app, tokens); if (!opt) ft_errno(FT_EERRNO); return (opt); @@ -113,7 +113,7 @@ t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_wordlist *tokens) /* ** TODO NORM -> function is too long */ -t_cmd *minishell_group_or_smp_parse(t_minishell *app, t_wordlist *tokens) +t_cmd *minishell_group_or_simple_parse(t_minishell *app, t_wordlist *tokens) { t_cmd *subtree; t_cmd *group; @@ -203,7 +203,7 @@ t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens) t_cmd *opt; t_cmd *pipeline; - subtree = minishell_group_or_smp_parse(app, tokens); + subtree = minishell_group_or_simple_parse(app, tokens); if (!subtree) return (NULL); opt = minishell_opt_pipeline_parse(app, tokens); diff --git a/src/parser/cmd_parsing.h b/src/parser/cmd_parsing.h index 3238bee..3e60c58 100644 --- a/src/parser/cmd_parsing.h +++ b/src/parser/cmd_parsing.h @@ -5,8 +5,8 @@ /* +:+ +:+ +:+ */ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ -/* Created: 2025/04/14 14:46/44 by khais #+# #+# */ -/* Updated: 2025/04/14 14:46:44 by khais ### ########.fr */ +/* Created: 2025/04/14 17:36/26 by khais #+# #+# */ +/* Updated: 2025/04/14 17:36:26 by khais ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,7 @@ t_cmd *minishell_cmds_parse(t_minishell *app, t_wordlist *tokens); t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens); t_cmd *minishell_opt_cmds_parse(t_minishell *app, t_wordlist *tokens, t_connector *connec); -t_cmd *minishell_group_or_smp_parse(t_minishell *app, +t_cmd *minishell_group_or_simple_parse(t_minishell *app, t_wordlist *tokens); t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_wordlist *tokens);