aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-26 12:17:48 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:49 -0700
commitc37b806b9ac71d4f7359b7592f2a8113afb159f5 (patch)
tree1bc4fa3a7aedeba463130d8dcd59227a4f1ccb0a /expression.h
parentMake a function call point an expression type of its own, and (diff)
downloadsparse-c37b806b9ac71d4f7359b7592f2a8113afb159f5.tar.gz
sparse-c37b806b9ac71d4f7359b7592f2a8113afb159f5.tar.bz2
sparse-c37b806b9ac71d4f7359b7592f2a8113afb159f5.zip
Give comma expressions and comparison expressions different types,
even though they parse like other binops: they have different semantic type behaviour, and should be evaluated separately. Show bitfield symbol types.
Diffstat (limited to 'expression.h')
-rw-r--r--expression.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/expression.h b/expression.h
index 56a1d7d..3b0bd63 100644
--- a/expression.h
+++ b/expression.h
@@ -24,6 +24,8 @@ enum expression_type {
EXPR_CONDITIONAL,
EXPR_STATEMENT,
EXPR_CALL,
+ EXPR_COMMA,
+ EXPR_COMPARE,
};
struct expression {
@@ -43,7 +45,7 @@ struct expression {
// EXPR_STATEMENT
struct statement *statement;
- // EXPR_BINOP and EXPR_ASSIGNMENT
+ // EXPR_BINOP, EXPR_COMMA, EXPR_COMPARE and EXPR_ASSIGNMENT
struct binop_arg {
struct expression *left, *right;
};