diff options
author | Ian Romanick <[email protected]> | 2010-08-13 16:46:43 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-08-13 16:46:43 -0700 |
commit | 768b55a5268572ff9fd03e57e92775882eb0a821 (patch) | |
tree | db4187d5f64d1d702ec614d4b46b29ace7d986f9 /src/glsl/glsl_parser.h | |
parent | d960b61ea3d2ed749a41a0d0fea621415d656848 (diff) |
glsl2: Remove unnecessary use of 'struct' before type names
In C++ you don't have to say 'struct' or 'class' if the declaration of
the type has been seen. Some compilers will complain if you use
'struct' when 'class' should have been used and vice versa.
Fixes bugzilla #29539.
Diffstat (limited to 'src/glsl/glsl_parser.h')
-rw-r--r-- | src/glsl/glsl_parser.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/glsl/glsl_parser.h b/src/glsl/glsl_parser.h index 4124c7f1d2d..48a0a5fb3a3 100644 --- a/src/glsl/glsl_parser.h +++ b/src/glsl/glsl_parser.h @@ -245,21 +245,21 @@ typedef union YYSTYPE unsigned i; } type_qualifier; - struct ast_node *node; - struct ast_type_specifier *type_specifier; - struct ast_fully_specified_type *fully_specified_type; - struct ast_function *function; - struct ast_parameter_declarator *parameter_declarator; - struct ast_function_definition *function_definition; - struct ast_compound_statement *compound_statement; - struct ast_expression *expression; - struct ast_declarator_list *declarator_list; - struct ast_struct_specifier *struct_specifier; - struct ast_declaration *declaration; + ast_node *node; + ast_type_specifier *type_specifier; + ast_fully_specified_type *fully_specified_type; + ast_function *function; + ast_parameter_declarator *parameter_declarator; + ast_function_definition *function_definition; + ast_compound_statement *compound_statement; + ast_expression *expression; + ast_declarator_list *declarator_list; + ast_struct_specifier *struct_specifier; + ast_declaration *declaration; struct { - struct ast_node *cond; - struct ast_expression *rest; + ast_node *cond; + ast_expression *rest; } for_rest_statement; |