aboutsummaryrefslogtreecommitdiff
path: root/src/eval/parenthesis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/parenthesis.c')
-rw-r--r--src/eval/parenthesis.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/eval/parenthesis.c b/src/eval/parenthesis.c
index 6f4f9e0..c7bc2d2 100644
--- a/src/eval/parenthesis.c
+++ b/src/eval/parenthesis.c
@@ -6,7 +6,7 @@
/* By: charles <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/13 20:38:29 by charles #+# #+# */
-/* Updated: 2020/10/07 15:56:09 by cacharle ### ########.fr */
+/* Updated: 2020/10/10 12:44:59 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,6 +17,16 @@ int wrapped_eval(t_fork_param_args *param)
return (eval(param->fds, param->env, param->ast));
}
+/*
+** \brief Evaluate a parenthesized expression
+** Extract parenthesis redirection and evaluate
+** the expression contained in the parenthesis in a fork
+** \param fds Input/output filedescriptor
+** \param env Environment
+** \param ast Parenthesis AST node
+** \return Expression status code
+*/
+
int eval_parenthesis(int fds[2], t_env env, t_ast *ast)
{
int status;