aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-04-09 13:58:46 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:24 -0700
commitc5dd7c8e714f9264e95dd9e376e4bba4c600c9f2 (patch)
treef99718015f96f16ccde30bc0b6befd8c29252cef /parse.h
parentDon't warn about dereferences to noderef pointers - we don't know yet (diff)
downloadsparse-c5dd7c8e714f9264e95dd9e376e4bba4c600c9f2.tar.gz
sparse-c5dd7c8e714f9264e95dd9e376e4bba4c600c9f2.tar.bz2
sparse-c5dd7c8e714f9264e95dd9e376e4bba4c600c9f2.zip
Turn 'break'/'continue' statements into goto's with
per-iterator anonymous symbols. Make arrays also gracefully degenerate into "void *".
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.h b/parse.h
index f640844..a74bcc5 100644
--- a/parse.h
+++ b/parse.h
@@ -14,8 +14,6 @@ enum statement_type {
STMT_COMPOUND,
STMT_IF,
STMT_RETURN,
- STMT_BREAK,
- STMT_CONTINUE,
STMT_CASE,
STMT_SWITCH,
STMT_ITERATOR,
@@ -57,6 +55,8 @@ struct statement {
struct statement *switch_statement;
};
struct iterator_struct {
+ struct symbol *break_symbol;
+ struct symbol *cont_symbol;
struct statement *iterator_pre_statement;
struct expression *iterator_pre_condition;