From adda894976a77c07fb22fb346680fdac01df241e Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 19 Aug 2012 19:39:58 +0200 Subject: [PATCH] have function declarations of functions with prototypes take over the actual declaration's body's context data --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index a70b907..c196b8b 100644 --- a/parser.c +++ b/parser.c @@ -2004,6 +2004,8 @@ static bool parser_variable(parser_t *parser, ast_block *localblock) /* copy over the parameter names */ for (param = 0; param < fval->expression.params_count; ++param) ast_value_set_name(proto->expression.params[param], fval->expression.params[param]->name); + /* copy the new context */ + ast_ctx(proto) = ast_ctx(fval); /* now ditch the rest of the new data */ ast_function_delete(func); -- 2.39.2