ref: 20617bae7d7e87b7c3a924395850abb957f3aa35
parent: bada193b9bd2f13dd7788b2664f000e7f4e75258
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Oct 25 14:45:30 EDT 2013
Remove duplicated code in postfix These new order in the switch removes the needed for a function call.
--- a/expr.c
+++ b/expr.c
@@ -67,13 +67,12 @@
case DEC: op = OPOSTDEC; goto next;
default: return np1;
}
- node_2_childs:
- np1 = node(op, np1, np2);
- continue;
expect_iden:
next();
expect(IDEN);
- np1 = node(op, np1, nodesym(lookup(yytext, NS_IDEN)));
+ np2 = nodesym(lookup(yytext, NS_IDEN));
+ node_2_childs:
+ np1 = node(op, np1, np2);
continue;
next:
np1 = node(op, np1, NULL);