awk: deindent code block, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
adcd9a6f34
commit
a493441ca5
@ -1337,8 +1337,9 @@ static node *parse_expr(uint32_t term_tc)
|
|||||||
cn->a.n = glptr;
|
cn->a.n = glptr;
|
||||||
expected_tc = TS_OPERAND | TS_UOPPRE;
|
expected_tc = TS_OPERAND | TS_UOPPRE;
|
||||||
glptr = NULL;
|
glptr = NULL;
|
||||||
|
continue;
|
||||||
} else if (tc & (TS_BINOP | TC_UOPPOST)) {
|
}
|
||||||
|
if (tc & (TS_BINOP | TC_UOPPOST)) {
|
||||||
debug_printf_parse("%s: TS_BINOP | TC_UOPPOST tc:%x\n", __func__, tc);
|
debug_printf_parse("%s: TS_BINOP | TC_UOPPOST tc:%x\n", __func__, tc);
|
||||||
/* for binary and postfix-unary operators, jump back over
|
/* for binary and postfix-unary operators, jump back over
|
||||||
* previous operators with higher priority */
|
* previous operators with higher priority */
|
||||||
@ -1368,8 +1369,9 @@ static node *parse_expr(uint32_t term_tc)
|
|||||||
expected_tc = TS_OPERAND | TS_UOPPRE | TS_BINOP | term_tc;
|
expected_tc = TS_OPERAND | TS_UOPPRE | TS_BINOP | term_tc;
|
||||||
}
|
}
|
||||||
vn->a.n = cn;
|
vn->a.n = cn;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
debug_printf_parse("%s: other, t_info:%x\n", __func__, t_info);
|
debug_printf_parse("%s: other, t_info:%x\n", __func__, t_info);
|
||||||
/* for operands and prefix-unary operators, attach them
|
/* for operands and prefix-unary operators, attach them
|
||||||
* to last node */
|
* to last node */
|
||||||
@ -1380,7 +1382,10 @@ static node *parse_expr(uint32_t term_tc)
|
|||||||
expected_tc = TS_OPERAND | TS_UOPPRE | TC_REGEXP;
|
expected_tc = TS_OPERAND | TS_UOPPRE | TC_REGEXP;
|
||||||
if (t_info == TI_PREINC || t_info == TI_PREDEC)
|
if (t_info == TI_PREINC || t_info == TI_PREDEC)
|
||||||
expected_tc = TS_LVALUE | TC_UOPPRE1;
|
expected_tc = TS_LVALUE | TC_UOPPRE1;
|
||||||
if (tc & (TS_OPERAND | TC_REGEXP)) {
|
|
||||||
|
if (!(tc & (TS_OPERAND | TC_REGEXP)))
|
||||||
|
continue;
|
||||||
|
|
||||||
debug_printf_parse("%s: TS_OPERAND | TC_REGEXP\n", __func__);
|
debug_printf_parse("%s: TS_OPERAND | TC_REGEXP\n", __func__);
|
||||||
expected_tc = TS_UOPPRE | TC_UOPPOST | TS_BINOP | TS_OPERAND | term_tc;
|
expected_tc = TS_UOPPRE | TC_UOPPOST | TS_BINOP | TS_OPERAND | term_tc;
|
||||||
/* one should be very careful with switch on tclass -
|
/* one should be very careful with switch on tclass -
|
||||||
@ -1462,8 +1467,6 @@ static node *parse_expr(uint32_t term_tc)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} /* while() */
|
} /* while() */
|
||||||
|
|
||||||
debug_printf_parse("%s() returns %p\n", __func__, sn.r.n);
|
debug_printf_parse("%s() returns %p\n", __func__, sn.r.n);
|
||||||
|
Loading…
Reference in New Issue
Block a user