Brian Foley
7454879a1d
dc: execute shouldn't pop if stack head is not a string
...
This matches the behaviour of both GNU dc (as specified in
its man page), and BSD dc (where stack_popstring() pops
only if the head is a string.)
Add a couple of tests to verify this behavior.
function old new delta
zxc_vm_process 6882 6884 +2
Signed-off-by: Brian Foley <bpfoley@google.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-09-05 10:46:22 +02:00
..
2018-12-28 03:20:17 +01:00
2018-11-02 14:14:51 +01:00
2019-09-05 10:46:22 +02:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2018-06-06 15:16:48 +02:00
2017-08-08 17:09:40 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2017-10-05 15:33:28 +02:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2016-11-23 10:43:39 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-03-30 17:27:09 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2018-12-28 17:52:43 +01:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-03-26 11:51:21 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2019-03-17 19:48:39 +01:00