From 44eb13d0b589e27038dffc10cec0f0a303e124fe Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 11 Mar 2010 16:11:07 -0800 Subject: [PATCH] Add parameters to function declarations in the correct order --- glsl_parser.ypp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } ; -- 2.30.2