comparison lwasm/lwasm.c @ 200:348e2816ce32

Short ciruit some recursion in expression library
author William Astle <lost@l-w.ca>
date Fri, 16 Mar 2012 19:44:12 -0600
parents 8dead67ba607
children 52d9dd71f555
comparison
equal deleted inserted replaced
199:3132b1742eca 200:348e2816ce32
647 return e; 647 return e;
648 } 648 }
649 649
650 int lwasm_reduce_expr(asmstate_t *as, lw_expr_t expr) 650 int lwasm_reduce_expr(asmstate_t *as, lw_expr_t expr)
651 { 651 {
652 if (expr) 652 lw_expr_simplify(expr, as);
653 lw_expr_simplify(expr, as);
654 return 0; 653 return 0;
655 } 654 }
656 655
657 void lwasm_save_expr(line_t *cl, int id, lw_expr_t expr) 656 void lwasm_save_expr(line_t *cl, int id, lw_expr_t expr)
658 { 657 {