dc: unbreak interactive mode - was trying to get next tokens instead of executing
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Dec 2018 17:04:08 +0000 (18:04 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Dec 2018 17:10:50 +0000 (18:10 +0100)
commitbadf683b0aa693de9b1a7c1634ad20665463c503
treec0d98441715a00b73971743e49f4c82c90beaf9b
parent5daa1a0adfe08bae588e5293686a84ab3649a2aa
dc: unbreak interactive mode - was trying to get next tokens instead of executing

function                                             old     new   delta
zbc_program_read                                       -     268    +268
zdc_program_printStream                                -     146    +146
zbc_program_exec                                    4046    4182    +136
zdc_program_execStr                                  472     512     +40
zdc_parse_exprs_until_eof                              -      26     +26
zbc_vm_process                                       740     765     +25
zbc_lex_next                                        2225    2240     +15
zdc_parse_expr                                       569     535     -34
zbc_program_pushArray                                147       -    -147
zdc_program_asciify                                  370       -    -370
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 4/1 up/down: 656/-551)          Total: 105 bytes

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