comparison eval.c @ 28:8a955e3dda2c posted-20101220

two more tests, more fixes
author David A. Holland
date Mon, 20 Dec 2010 05:42:15 -0500
parents 9dda765ee85c
children 76c114899f63
comparison
equal deleted inserted replaced
27:01c3a2088ab4 28:8a955e3dda2c
218 return val; 218 return val;
219 } 219 }
220 220
221 static 221 static
222 int 222 int
223 eval_bop(struct place *p, enum tokens op, int lv, int rv) 223 eval_bop(struct place *p, int lv, enum tokens op, int rv)
224 { 224 {
225 unsigned mask; 225 unsigned mask;
226 226
227 switch (op) { 227 switch (op) {
228 case T_PIPEPIPE: return lv || rv; 228 case T_PIPEPIPE: return lv || rv;