diff options
author | 2005-11-21 17:23:32 -0500 | |
---|---|---|
committer | 2005-11-22 08:43:02 -0800 | |
commit | a046c1b92025c46a84a89c2d40ba2da3be12893c (patch) | |
tree | 162dcde71a148a391af5494071f5de564fd221a9 /show-parse.c | |
parent | [PATCH] new flag - Wone-bit-signed-bitfield (diff) | |
download | sparse-a046c1b92025c46a84a89c2d40ba2da3be12893c.tar.gz sparse-a046c1b92025c46a84a89c2d40ba2da3be12893c.tar.bz2 sparse-a046c1b92025c46a84a89c2d40ba2da3be12893c.zip |
[PATCH] fix treatment of EXPR_COMMA by show_expression()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'show-parse.c')
-rw-r--r-- | show-parse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/show-parse.c b/show-parse.c index be5d704..72c408b 100644 --- a/show-parse.c +++ b/show-parse.c @@ -622,6 +622,12 @@ static int show_call_expression(struct expression *expr) return retval; } +static int show_comma(struct expression *expr) +{ + show_expression(expr->left); + return show_expression(expr->right); +} + static int show_binop(struct expression *expr) { int left = show_expression(expr->left); @@ -980,8 +986,9 @@ int show_expression(struct expression *expr) case EXPR_ASSIGNMENT: return show_assignment(expr); - case EXPR_BINOP: case EXPR_COMMA: + return show_comma(expr); + case EXPR_BINOP: case EXPR_COMPARE: case EXPR_LOGICAL: return show_binop(expr); |