projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e4c2519
)
Fix empty toplevel progn
author
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 10:32:32 +0000
(12:32 +0200)
committer
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 10:32:32 +0000
(12:32 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
747f4b1
..
6605dde
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-1506,7
+1506,10
@@
(defun convert-toplevel (sexp &optional multiple-value-p)
(let ((*toplevel-compilations* nil))
(cond
(defun convert-toplevel (sexp &optional multiple-value-p)
(let ((*toplevel-compilations* nil))
(cond
- ((and (consp sexp) (eq (car sexp) 'progn))
+ ;; Non-empty toplevel progn
+ ((and (consp sexp)
+ (eq (car sexp) 'progn)
+ (cdr sexp))
`(progn
,@(mapcar (lambda (s) (convert-toplevel s t))
(cdr sexp))))
`(progn
,@(mapcar (lambda (s) (convert-toplevel s t))
(cdr sexp))))