diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-11 23:22:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-11 23:22:52 +0100 |
commit | f0f069b08f8e22a7da580ae2c19425bfb1313297 (patch) | |
tree | edf81702c1087f3315470b71f53cd7e2f6c770bd | |
parent | 4dd3652c2fa782ac25a0cb59df060275e6384908 (diff) | |
download | busybox-w32-f0f069b08f8e22a7da580ae2c19425bfb1313297.tar.gz busybox-w32-f0f069b08f8e22a7da580ae2c19425bfb1313297.tar.bz2 busybox-w32-f0f069b08f8e22a7da580ae2c19425bfb1313297.zip |
bc: use common_parse_init() in bc_vm_init()
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@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 6 |
1 files changed, 1 insertions, 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) | |||
7575 | if (IS_BC) | 7575 | if (IS_BC) |
7576 | IF_BC(bc_vm_envArgs();) | 7576 | IF_BC(bc_vm_envArgs();) |
7577 | bc_program_init(); | 7577 | bc_program_init(); |
7578 | if (IS_BC) { | 7578 | common_parse_init(&G.prs, BC_PROG_MAIN); |
7579 | IF_BC(bc_parse_init(&G.prs, BC_PROG_MAIN);) | ||
7580 | } else { | ||
7581 | IF_DC(dc_parse_init(&G.prs, BC_PROG_MAIN);) | ||
7582 | } | ||
7583 | 7579 | ||
7584 | if (isatty(0)) { | 7580 | if (isatty(0)) { |
7585 | #if ENABLE_FEATURE_BC_SIGNALS | 7581 | #if ENABLE_FEATURE_BC_SIGNALS |