From 0c435ed0401043d1b868e7735d21fdb46b581ece Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 4 Aug 2024 16:37:09 +0200 Subject: [PATCH] Adding the not done function working on darwin --- ast/src/_not_done_function.c | 63 +++++++++++++++++++++++++++++++----- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/ast/src/_not_done_function.c b/ast/src/_not_done_function.c index fdf1da8a..46532c58 100644 --- a/ast/src/_not_done_function.c +++ b/ast/src/_not_done_function.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* not_done_function.c :+: :+: :+: */ +/* _not_done_function.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/17 13:04:32 by maiboyer #+# #+# */ -/* Updated: 2024/07/30 18:30:47 by maiboyer ### ########.fr */ +/* Updated: 2024/08/04 16:36:58 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,14 +26,61 @@ t_error _build_not_finished(t_parse_node self, t_const_str i, t_ast_node *out) } t_error build_sym_heredoc_body(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + t_error build_sym_heredoc_content(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + t_error build_sym_heredoc_end(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + t_error build_sym_heredoc_redirect(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + t_error build_sym_heredoc_start(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + t_error build_sym_simple_heredoc_body(t_parse_node self, t_const_str input, \ - t_ast_node *out) __attribute__((weak, alias("_build_not_finished"))); + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +}