commit 20617bae7d7e87b7c3a924395850abb957f3aa35
parent bada193b9bd2f13dd7788b2664f000e7f4e75258
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 25 Oct 2013 18:45:30 +0200
Remove duplicated code in postfix
These new order in the switch removes the needed
for a function call.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/expr.c b/expr.c
@@ -67,13 +67,12 @@ postfix(void)
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);