bc: add code to detect errors like "print 1 print 2"
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Dec 2018 17:37:52 +0000 (18:37 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Dec 2018 17:37:52 +0000 (18:37 +0100)
commit2638454464b944f9c407326257851bab13c045ec
tree6afd3f8d336f4f22cc7bf87b40d896fadeff8879
parent5fa74b9efc538b55ec164ce3886eeea782016487
bc: add code to detect errors like "print 1 print 2"

function                                             old     new   delta
zbc_vm_process                                       831     925     +94
zbc_program_exec                                    3964    3976     +12
zdc_program_execStr                                  506     512      +6
zbc_lex_next                                        2161    2167      +6
zbc_program_assign                                   419     424      +5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 123/0)             Total: 123 bytes

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