From 29ccb2c2b33dd4b8d628d0499fa46799f6762ddb Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 9 Oct 2015 21:38:07 -0700 Subject: Tweaking expansions of when and until. * eval.c (me_when): Expand to if if there aren't multiple body forms. (me_unless): Simplify progn. * tests/012/struct.tl: Update string representation in struct test case. --- tests/012/struct.tl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/012/struct.tl b/tests/012/struct.tl index d9ecc325..cc4bd79b 100644 --- a/tests/012/struct.tl +++ b/tests/012/struct.tl @@ -74,11 +74,11 @@ \ '(x y) () (lambda (#:g0004)\n \ \ (let ((#:g0005 (struct-type #:g0004)))\n \ \ (if (static-slot-p #:g0005 'x)\n \ - \ () (progn (slotset #:g0004 'x\n \ - \ 0)))\n \ + \ () (slotset #:g0004 'x\n \ + \ 0))\n \ \ (if (static-slot-p #:g0005 'y)\n \ - \ () (progn (slotset #:g0004 'y\n \ - \ 0)))))\n \ + \ () (slotset #:g0004 'y\n \ + \ 0))))\n \ \ (lambda (#:g0004 #:g0006\n \ \ #:g0007)\n \ \ (slotset #:g0004 'x\n \ -- cgit v1.2.3