bc: speed up string printing, fix print ""
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Jan 2019 04:03:53 +0000 (05:03 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 14 Feb 2019 13:40:57 +0000 (14:40 +0100)
commit7dd6ba12f76d2affafac8e6173d0c995b3279e51
treed13be59fcc4cd7fa3a91ecc6e7872219831b1b87
parentf23c04af2d4575836cb5d9d1ea9176310ed633b5
bc: speed up string printing, fix print ""

function                                             old     new   delta
static.esc                                             -       9      +9
zxc_program_print                                    681     683      +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 11/0)               Total: 11 bytes
   text    data     bss     dec     hex filename
 979144     485    7296  986925   f0f2d busybox_old
 979062     485    7296  986843   f0edb busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
testsuite/bc.tests