diff options
author | Florian Westphal <fw@strlen.de> | 2018-01-11 16:30:22 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-03-17 01:47:17 +0100 |
commit | ccf7c4fc9af2b982c24a7a3b40ecc5ebbe93ecef (patch) | |
tree | 08eec1d7fa7d93913d21133aed98f3fc14c8427d /include/expression.h | |
parent | 00718d13ab3f27bac767035804feb7ad0cc15a1e (diff) |
evaluate: handle binop adjustment recursively
currently this is fine, but a followup commit will add
EXPR_SET_ELEM handling.
And unlike RANGE we cannot assume the key is a value.
Therefore make binop_can_transfer and binop_transfer_one handle
right hand recursively if needed. For RANGE, call it again with
from/to.
For future SET_ELEM, we can then just call the function recursively
again with right->key as new RHS.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/expression.h')
0 files changed, 0 insertions, 0 deletions