[git commit] awk: rollback_token() + chain_group() == chain_until_rbrace()
Denys Vlasenko
vda.linux at googlemail.com
Sun Jul 11 09:46:21 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=49c3ce64f092fd5434fc67056f312bd32f82bae3
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
parse_program 336 332 -4
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
editors/awk.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/editors/awk.c b/editors/awk.c
index a440a6234..755e68fc7 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1778,8 +1778,7 @@ static void parse_program(char *p)
cn->l.n = parse_expr(TC_SEMICOL | TC_NEWLINE | TC_EOF | TC_LBRACE);
if (t_tclass == TC_LBRACE) {
debug_printf_parse("%s: TC_LBRACE\n", __func__);
- rollback_token();
- chain_group();
+ chain_until_rbrace();
} else {
/* no action, assume default "{ print }" */
debug_printf_parse("%s: !TC_LBRACE\n", __func__);
More information about the busybox-cvs
mailing list