awk: when parsing length(), simplify eating of LPAREN
function old new delta parse_expr 945 948 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
40573556f2
commit
1193c68fa7
@ -1453,10 +1453,11 @@ static node *parse_expr(uint32_t term_tc)
|
||||
| TC_BINOPX /* length <op> NUM */
|
||||
| TC_COMMA /* print length, 1 */
|
||||
);
|
||||
rollback_token();
|
||||
if (tc & TC_LPAREN) {
|
||||
if (tc != TC_LPAREN)
|
||||
rollback_token();
|
||||
else {
|
||||
/* It was a "(" token. Handle just like TC_BUILTIN */
|
||||
cn->l.n = parse_lrparen_list();
|
||||
cn->l.n = parse_expr(TC_RPAREN);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user