diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-29 14:43:58 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-29 14:43:58 -0700 |
commit | 83e2a1c124a229351df23b336a44db1603862d98 (patch) | |
tree | 3fa25fba701d141adda33c0b539a3394be029cff | |
parent | 55395c5e81f8769315888bee61b67e6bbf5da5eb (diff) | |
download | cproc-83e2a1c124a229351df23b336a44db1603862d98.tar.xz |
eval: Remove now unneeded handling of EXPRCOND
We now do this evaluation during parsing.
-rw-r--r-- | eval.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -184,13 +184,6 @@ eval(struct expr *expr, enum evalkind kind) binary(expr, expr->op, l, r); } break; - case EXPRCOND: - l = expr->cond.t; - r = expr->cond.f; - c = eval(expr->base, kind); - if (c->kind != EXPRCONST) - break; - return eval(c->constant.i ? l : r, kind); } return expr; |