summaryrefslogtreecommitdiff
path: root/glsl_parser.ypp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-11 16:11:07 -0800
committerIan Romanick <ian.d.romanick@intel.com>2010-03-11 16:11:07 -0800
commit44eb13d0b589e27038dffc10cec0f0a303e124fe (patch)
tree138a18689f0e2699613e805d346948f1cbacc54c /glsl_parser.ypp
parent471471f83471481db0445e73f8c89e6a9149838e (diff)
Add parameters to function declarations in the correct order
Diffstat (limited to 'glsl_parser.ypp')
-rw-r--r--glsl_parser.ypp4
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_parser.ypp b/glsl_parser.ypp
index 058a032..cc9e116 100644
--- a/glsl_parser.ypp
+++ b/glsl_parser.ypp
@@ -581,13 +581,13 @@ function_header_with_parameters:
function_header parameter_declaration
{
$$ = $1;
- insert_at_head(& $$->parameters,
+ insert_at_tail(& $$->parameters,
(struct simple_node *) $2);
}
| function_header_with_parameters ',' parameter_declaration
{
$$ = $1;
- insert_at_head(& $$->parameters,
+ insert_at_tail(& $$->parameters,
(struct simple_node *) $3);
}
;