From: Ian Romanick Date: Fri, 12 Mar 2010 00:11:07 +0000 (-0800) Subject: Add parameters to function declarations in the correct order X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44eb13d0b589e27038dffc10cec0f0a303e124fe;p=mesa.git Add parameters to function declarations in the correct order --- diff --git a/glsl_parser.ypp b/glsl_parser.ypp index 058a03231da..cc9e11676a3 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); } ;