chiark / gitweb /
src/classes.lisp, src/class-layout-proto.lisp: Docstring fixes.
[sod] / src / module-impl.lisp
index 89e1ffb61716d4d8dcf7aa037210a372f1c77738..fe6b545785778b0a8d26c1e14d1810cb9df75b9a 100644 (file)
@@ -45,7 +45,7 @@ (defmethod shared-initialize :after ((module module) slot-names &key pset)
 
 (defmethod finalize-module ((module module))
   (let* ((pset (module-pset module))
 
 (defmethod finalize-module ((module module))
   (let* ((pset (module-pset module))
-        (class (get-property pset :lisp-class :symbol 'module)))
+        (class (get-property pset :module-class :symbol 'module)))
 
     ;; Always call `change-class', even if it's the same one; this will
     ;; exercise the property-set fiddling in `shared-initialize' and we can
 
     ;; Always call `change-class', even if it's the same one; this will
     ;; exercise the property-set fiddling in `shared-initialize' and we can
@@ -167,7 +167,8 @@ (defun output-c-excursion (stream location thunk)
         (line (file-location-line location))
         (filename (file-location-filename location)))
     (cond (line
         (line (file-location-line location))
         (filename (file-location-filename location)))
     (cond (line
-          (format stream "~&#line ~D~@[ ~S~]~%" line filename)
+          (when (typep stream 'position-aware-stream)
+            (format stream "~&#line ~D~@[ ~S~]~%" line filename))
           (funcall thunk)
           (when (typep stream 'position-aware-stream)
             (fresh-line stream)
           (funcall thunk)
           (when (typep stream 'position-aware-stream)
             (fresh-line stream)