bc: fix "...; return}" to work, disallow "return ()"
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Jan 2019 22:34:36 +0000 (23:34 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 14 Feb 2019 13:40:57 +0000 (14:40 +0100)
commit56e09e93bd9e4cdc75c77d9e7c8db3548bdbf089
treec3567eeb815644b4a845d3e0da4c04e4db8e5ca7
parent18351b4a89e53a07c83198a8150800471c4701b3
bc: fix "...; return}" to work, disallow "return ()"

function                                             old     new   delta
zbc_parse_expr                                        24    1865   +1841
zbc_parse_stmt_possibly_auto                        1425    1413     -12
bc_parse_expr_empty_ok                              1843       -   -1843
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 1841/-1855)        Total: -14 bytes

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