Fix OPEN when :if-exists/:if-does-not-exist are both NIL or :ERROR.
[sbcl.git] / src / pcl / dlisp3.lisp
index 4ff4567..c935ec2 100644 (file)
@@ -22,9 +22,6 @@
 ;;;; specification.
 
 (in-package "SB-PCL")
-
-(sb-int:file-comment
-  "$Header$")
 \f
 (eval-when (:compile-toplevel :load-toplevel :execute)
 (defparameter *checking-or-caching-list*
     (nil nil (class class) t)))
 ) ; EVAL-WHEN
 
-(defmacro make-checking-or-caching-function-list ()
-  `(list ,@(mapcar #'(lambda (key)
-                      `(cons ',key (emit-checking-or-caching-macro ,@key)))
-                  *checking-or-caching-list*)))
-
 ;;; Rather than compiling the constructors here, just tickle the range
 ;;; of shapes defined above, leaving the generation of the
 ;;; constructors to precompile-dfun-constructors.
 (dolist (key *checking-or-caching-list*)
   (destructuring-bind (cached-emf-p return-value-p metatypes applyp) key
     (multiple-value-bind (args generator)
-       (if cached-emf-p
-           (if return-value-p
-               (values (list metatypes) 'emit-constant-value)
-               (values (list metatypes applyp) 'emit-caching))
-           (if return-value-p
-               (values (list metatypes) 'emit-in-checking-p)
-               (values (list metatypes applyp) 'emit-checking)))
+        (if cached-emf-p
+            (if return-value-p
+                (values (list metatypes) 'emit-constant-value)
+                (values (list metatypes applyp) 'emit-caching))
+            (if return-value-p
+                (values (list metatypes) 'emit-in-checking-p)
+                (values (list metatypes applyp) 'emit-checking)))
       (apply #'get-dfun-constructor generator args))))