1.0.27.32: implement and use SB!XC:GENSYM
[sbcl.git] / src / compiler / ir1report.lisp
index f621c93..14a2121 100644 (file)
    Named form when it appears in the compiler input. Lambda-List is a DEFMACRO
    style lambda-list used to parse the arguments. The Body should return a
    list of subforms suitable for a \"~{~S ~}\" format string."
-  (let ((n-whole (gensym)))
+  (with-unique-names (whole)
     `(setf (gethash ',name *source-context-methods*)
-           (lambda (,n-whole)
-             (destructuring-bind ,lambda-list ,n-whole ,@body)))))
+           (lambda (,whole)
+             (destructuring-bind ,lambda-list ,whole ,@body)))))
 
 (define-source-context defstruct (name-or-options &rest slots)
   (declare (ignore slots))
                                    (compiler-error-context-original-source last)))
                (note-message-repeats stream)
                (setq last nil)
-               (pprint-logical-block (stream nil :per-line-prefix "; ")
-                 (format stream "  ~A" form))
+               (pprint-logical-block (stream nil :per-line-prefix ";   ")
+                 (princ form stream))
                (fresh-line stream))
 
              (unless (and last