double d1, d2;
if (!v1o || !v2o) {
- if ((v1o || v2o) && op == C_NE)
- return TRUE;
- return FALSE;
+ return (v1o || v2o) && op == C_NE;
}
t1 = Tgettype(v1o), t2 = Tgettype(v2o);
if (t1 == T_STRING && t2 == T_STRING) {
}
switch (op) {
case C_EQ:
- return (r == 0) ? TRUE : FALSE;
+ return r == 0;
case C_NE:
- return (r != 0) ? TRUE : FALSE;
+ return r != 0;
case C_LT:
- return (r < 0) ? TRUE : FALSE;
+ return r < 0;
case C_LE:
- return (r <= 0) ? TRUE : FALSE;
+ return r <= 0;
case C_GT:
- return (r > 0) ? TRUE : FALSE;
+ return r > 0;
case C_GE:
- return (r >= 0) ? TRUE : FALSE;
+ return r >= 0;
}
panic1(POS, "orderop", "bad op code");
return FALSE; /* NOT REACHED */