aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-04-09 14:58:13 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:25 -0700
commit55aeb3022d3677d55f2ae7edf9fd272c23d313c4 (patch)
tree82427faed4a957de05971d2379b37d30eaf6e39a /parse.h
parentShow iterators and goto's properly as pseudo-assembler. (diff)
downloadsparse-55aeb3022d3677d55f2ae7edf9fd272c23d313c4.tar.gz
sparse-55aeb3022d3677d55f2ae7edf9fd272c23d313c4.tar.bz2
sparse-55aeb3022d3677d55f2ae7edf9fd272c23d313c4.zip
Show if/label/asm statements in a saner format.
Parse break-statements inside switch-statements correctly. Rename break/continue symbols to make switch/iterator statements have the same naming logic for the break targets.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse.h b/parse.h
index a74bcc5..26bcdaa 100644
--- a/parse.h
+++ b/parse.h
@@ -53,10 +53,11 @@ struct statement {
struct switch_struct {
struct expression *switch_expression;
struct statement *switch_statement;
+ struct symbol *switch_break;
};
struct iterator_struct {
- struct symbol *break_symbol;
- struct symbol *cont_symbol;
+ struct symbol *iterator_break;
+ struct symbol *iterator_continue;
struct statement *iterator_pre_statement;
struct expression *iterator_pre_condition;