[git commit] bc: use common_parse_init() in bc_vm_init()
Denys Vlasenko
vda.linux at googlemail.com
Tue Dec 11 22:22:52 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=f0f069b08f8e22a7da580ae2c19425bfb1313297
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
common_parse_init 26 45 +19
dc_parse_init 17 - -17
bc_parse_init 17 - -17
bc_vm_init 744 725 -19
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 19/-53) Total: -34 bytes
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/bc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 32e002913..e3e8198b7 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7575,11 +7575,7 @@ static int bc_vm_init(const char *env_len)
if (IS_BC)
IF_BC(bc_vm_envArgs();)
bc_program_init();
- if (IS_BC) {
- IF_BC(bc_parse_init(&G.prs, BC_PROG_MAIN);)
- } else {
- IF_DC(dc_parse_init(&G.prs, BC_PROG_MAIN);)
- }
+ common_parse_init(&G.prs, BC_PROG_MAIN);
if (isatty(0)) {
#if ENABLE_FEATURE_BC_SIGNALS
More information about the busybox-cvs
mailing list