bc: change bc_read_line() and zbc_vm_stdin() to avoid double buffers
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Dec 2018 18:23:45 +0000 (19:23 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Dec 2018 18:24:42 +0000 (19:24 +0100)
commit82ea67fbfa98cfd6b8b422db764cb8c97fc3ea7b
treef9e67fbed671b7a5474720cf7f2733d1d2c53b1b
parentb7e61e3e4adc774d18b6377cdd6434dd7ce0c2be
bc: change bc_read_line() and zbc_vm_stdin() to avoid double buffers

function                                             old     new   delta
bc_read_line                                         129     124      -5
bc_vm_run                                            523     433     -90
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-95)             Total: -95 bytes
   text    data     bss     dec     hex filename
 980445     485    7296  988226   f1442 busybox_old
 980350     485    7296  988131   f13e3 busybox_unstripped

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