diff options
author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-26 12:17:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:49 -0700 |
commit | c37b806b9ac71d4f7359b7592f2a8113afb159f5 (patch) | |
tree | 1bc4fa3a7aedeba463130d8dcd59227a4f1ccb0a /expression.h | |
parent | Make a function call point an expression type of its own, and (diff) | |
download | sparse-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.h | 4 |
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; }; |