Add parameters to function declarations in the correct order
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 12 Mar 2010 00:11:07 +0000 (16:11 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 12 Mar 2010 00:11:07 +0000 (16:11 -0800)
glsl_parser.ypp

index 058a03231dace870ed07d984a7133dfb25b73a9c..cc9e11676a312c53bdfd801eac171a8ebb081e9a 100644 (file)
@@ -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);
        }
        ;