summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-07-31 05:33:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-07-31 05:33:48 -0700
commitd8cf5c75653d94269ed6815b8a41ab55b85fc0de (patch)
treeef54b48b27b1cb60d4c5c5d4a1b44b48de8bb796 /share
parent0d75889dae241f39bbeaf74b59792e8bd225daf8 (diff)
downloadtxr-d8cf5c75653d94269ed6815b8a41ab55b85fc0de.tar.gz
txr-d8cf5c75653d94269ed6815b8a41ab55b85fc0de.tar.bz2
txr-d8cf5c75653d94269ed6815b8a41ab55b85fc0de.zip
Small code cleanup in tagbody.
* share/txr/stdlib/tagbody.tl (tagbody): Reduce unnecessary use of DWIM brackets to parentheses in calculation of bblocks. Remove entry-lbl local variable, propagating its initform to its one and only use site.
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/tagbody.tl7
1 files changed, 3 insertions, 4 deletions
diff --git a/share/txr/stdlib/tagbody.tl b/share/txr/stdlib/tagbody.tl
index 7d9057e6..1756fd1b 100644
--- a/share/txr/stdlib/tagbody.tl
+++ b/share/txr/stdlib/tagbody.tl
@@ -28,11 +28,10 @@
(when forms
(let* ((tb-id (gensym "tb-id-"))
(next-var (gensym "next-"))
- (bblocks [partition forms (op where [orf symbolp integerp chrp])])
- (start-lbl (and (car bblocks) [[orf symbolp integerp chrp] (caar bblocks)]))
- (entry-lbl (if start-lbl (caar bblocks) (gensym "entry-"))))
+ (bblocks (partition forms (op where [orf symbolp integerp chrp])))
+ (start-lbl (if bblocks [[orf symbolp integerp chrp] (caar bblocks)])))
(unless start-lbl
- (push entry-lbl (car bblocks)))
+ (push (gensym "entry-") (car bblocks)))
(if (and (not start-lbl) (not (cdr bblocks)))
^(progn nil ,*forms nil)
(let* ((lbls [mapcar car bblocks])