dc: tweak parsing
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 16 Feb 2015 16:12:04 +0000 (17:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 16 Feb 2015 16:12:04 +0000 (17:12 +0100)
commit70e30e8eec7f202cb584449e4c7a9176d57d980d
treef502c4819933beeb15d1ad50c0f335318495fa25
parent8e92df15b512d108901ce1762e917518553a8aaf
dc: tweak parsing

https://bugs.debian.org/538685
dc requires whitespace between language elements.

We were requiring
1 2 + p
instead of the abbreviated
1 2+p
(for example).

function                                             old     new   delta
stack_machine                                         97     126     +29
dc_main                                              117      79     -38
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 29/-38)             Total: -9 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/dc.c
testsuite/dc.tests [new file with mode: 0755]