aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-27 02:41:43 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:04 -0700
commit87900e832ac31d3aae63051ee054b01c17170439 (patch)
tree930552c97f6bb2b4d78e08b2e8eb44f73f63112f /expression.h
parentFix subtle problem with fn array arguments (diff)
downloadsparse-87900e832ac31d3aae63051ee054b01c17170439.tar.gz
sparse-87900e832ac31d3aae63051ee054b01c17170439.tar.bz2
sparse-87900e832ac31d3aae63051ee054b01c17170439.zip
Make expression tree have an "op value" for the inc/dec operations.
Needed for pointer inc/dec. These things are all supposed to be all set by the type evaluation phase, so that later parts don't need to worry.
Diffstat (limited to 'expression.h')
-rw-r--r--expression.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/expression.h b/expression.h
index 4560b84..c0b1292 100644
--- a/expression.h
+++ b/expression.h
@@ -60,7 +60,10 @@ struct expression {
struct string *string;
// EXPR_UNOP, EXPR_PREOP and EXPR_POSTOP
- struct expression *unop;
+ struct /* unop */ {
+ struct expression *unop;
+ unsigned long op_value;
+ };
// EXPR_SYMBOL, EXPR_TYPE
struct /* symbol_arg */ {