diff options
author | 2003-03-31 15:48:51 -0700 | |
---|---|---|
committer | 2005-04-07 20:59:56 -0700 | |
commit | 214ade5420276d7455593c833bbbe9c2dc04a90c (patch) | |
tree | 7396b4e2ad1bb112857b6ddc9b13a4013681ca7c /parse.h | |
parent | Remove last user of "struct token" from "struct expression". (diff) | |
download | sparse-214ade5420276d7455593c833bbbe9c2dc04a90c.tar.gz sparse-214ade5420276d7455593c833bbbe9c2dc04a90c.tar.bz2 sparse-214ade5420276d7455593c833bbbe9c2dc04a90c.zip |
Make labels be symbols in their own namespace (NS_LABEL).
This still gets the nesting scope wrong, though. Labels
should use function scope, not block scope.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ struct statement { struct statement *next; union { struct label_arg { - struct token *label; + struct symbol *label; struct statement *label_statement; }; struct expression *expression; @@ -44,7 +44,7 @@ struct statement { struct statement_list *stmts; }; struct labeled_struct { - struct token *label_identifier; + struct symbol *label_identifier; struct statement *label_statement; }; struct case_struct { @@ -66,7 +66,7 @@ struct statement { struct expression *iterator_post_condition; }; struct goto_struct { - struct token *goto_label; + struct symbol *goto_label; struct expression *goto_expression; }; }; |