diff options
author | Ryan Anderson <ryan@michonline.com> | 2003-06-07 18:42:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:50 -0700 |
commit | 5528ae996c02390a6f05cbcf6bc9cf3a1199824d (patch) | |
tree | ccf0da48513acad138ae700f89bd6be4de78cecb /parse.h | |
parent | Create "inline.c", which contains the function "copy_statement()", (diff) | |
download | sparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.tar.gz sparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.tar.bz2 sparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.zip |
[PATCH] Make all the anonymous structures truly anonymous
This patch removes the type-names on the anonymous structures. This
fixes compilation when using gcc-3.3 (Debian). Credit for identifying
the fix goes to Arnaldo Carvalho de Melo <acme@conectiva.com.br>.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -28,41 +28,41 @@ struct statement { enum statement_type type; struct position pos; union { - struct label_arg { + struct /* label_arg */ { struct symbol *label; struct statement *label_statement; }; struct expression *expression; - struct return_statement { + struct /* return_statement */ { struct expression *ret_value; struct symbol *ret_target; }; - struct if_statement { + struct /* if_statement */ { struct expression *if_conditional; struct statement *if_true; struct statement *if_false; }; - struct compound_struct { + struct /* compound_struct */ { struct symbol_list *syms; struct statement_list *stmts; struct symbol *ret; }; - struct labeled_struct { + struct /* labeled_struct */ { struct symbol *label_identifier; struct statement *label_statement; }; - struct case_struct { + struct /* case_struct */ { struct expression *case_expression; struct expression *case_to; struct statement *case_statement; struct symbol *case_label; }; - struct switch_struct { + struct /* switch_struct */ { struct expression *switch_expression; struct statement *switch_statement; struct symbol *switch_break, *switch_case; }; - struct iterator_struct { + struct /* iterator_struct */ { struct symbol *iterator_break; struct symbol *iterator_continue; struct symbol_list *iterator_syms; @@ -74,7 +74,7 @@ struct statement { struct statement *iterator_post_statement; struct expression *iterator_post_condition; }; - struct goto_struct { + struct /* goto_struct */ { struct symbol *goto_label; struct expression *goto_expression; }; |