diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-01 20:17:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:02:30 -0700 |
commit | c3b6ccf01b43193b705a1f4332e9b28b7ace3938 (patch) | |
tree | 1f18fb793b26914ceed6f52ff5387731b2ed1fb9 /inline.c | |
parent | [be] fix amazingly stupid conditional expression handling (diff) | |
download | sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.gz sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.bz2 sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.zip |
Add "select" expression.
It's the same as a regular C conditional, except you could
evaluate both sides first. Right now we treat it exactly
the same as an EXPR_CONDITIONAL.
Diffstat (limited to 'inline.c')
-rw-r--r-- | inline.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -130,6 +130,7 @@ static struct expression * copy_expression(struct expression *expr) } /* Conditional expression */ + case EXPR_SELECT: case EXPR_CONDITIONAL: { struct expression *cond = copy_expression(expr->conditional); struct expression *true = copy_expression(expr->cond_true); |