diff lwlib/lw_expr.c @ 336:401587ab6a09

checkpoint
author lost
date Fri, 05 Mar 2010 02:34:16 +0000
parents 9f58e3bca6e3
children 04c80c51b16a
line wrap: on
line diff
--- a/lwlib/lw_expr.c	Thu Mar 04 05:13:22 2010 +0000
+++ b/lwlib/lw_expr.c	Fri Mar 05 02:34:16 2010 +0000
@@ -347,6 +347,11 @@
 	}
 }
 
+void lw_expr_sortoperandlist(struct lw_expr_opers **o)
+{
+	fprintf(stderr, "lw_expr_sortoperandlist() not yet implemented\n");
+}
+
 // return 1 if the operand lists match, 0 if not
 // may re-order the argument lists
 int lw_expr_simplify_compareoperandlist(struct lw_expr_opers **ol1, struct lw_expr_opers **ol2)
@@ -421,7 +426,7 @@
 							if (op2 -> p -> type != lw_expr_type_int)
 								break;
 						
-						if (lw_expr_compareoperandlist(&op1, &op2))
+						if (lw_expr_simplify_compareoperandlist(&op1, &op2))
 						{
 							// we have like terms here
 							// do something about it