Reimplemented C2LET without REPLACEd variables and eliminated this kind from the rest of the compiler.

This commit is contained in:
Juan Jose Garcia Ripoll 2010-05-25 19:43:31 +02:00
parent 51c7549e72
commit bb3eeabf74
8 changed files with 106 additions and 106 deletions

View file

@ -294,8 +294,16 @@
(nreverse rts))
inline-info))))
(defun close-inline-blocks ()
(dotimes (i *inline-blocks*) (declare (fixnum i)) (wt #\})))
(defun maybe-open-inline-block ()
(unless (plusp *inline-blocks*)
(wt "{")
(setf *inline-blocks* 1)))
(defun close-inline-blocks (&optional new-line)
(loop for i of-type fixnum from 0 below *inline-blocks*
when (and (zerop i) new-line)
do (wt-nl)
do (wt #\})))
(defun form-causes-side-effect (form)
(c1form-side-effects form))