aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-03-31 15:48:51 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:56 -0700
commit214ade5420276d7455593c833bbbe9c2dc04a90c (patch)
tree7396b4e2ad1bb112857b6ddc9b13a4013681ca7c /parse.h
parentRemove last user of "struct token" from "struct expression". (diff)
downloadsparse-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.h b/parse.h
index f7d3392..0ff0eb4 100644
--- a/parse.h
+++ b/parse.h
@@ -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;
};
};