projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cadf877
)
have function declarations of functions with prototypes take over the actual declarat...
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 17:39:58 +0000
(19:39 +0200)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 17:39:58 +0000
(19:39 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index a70b9071869f9b1d81412653207f47675b78a416..c196b8be952f2ed6c0110b99fc492853874501e5 100644
(file)
--- 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);