X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fearly-low.lisp;h=abca53479d4a7b66fea887003eb4cb77ab3d4384;hb=dcf5978d9d33098e868ae6eea28e1b310038c03d;hp=5d436dab09a28c100bb5c3d71487d3583c334324;hpb=4eb1a6d3ad2b7dcc19ac0ec979a1eb1eb049659a;p=sbcl.git diff --git a/src/pcl/early-low.lisp b/src/pcl/early-low.lisp index 5d436da..abca534 100644 --- a/src/pcl/early-low.lisp +++ b/src/pcl/early-low.lisp @@ -43,7 +43,6 @@ ;;; #+SB-FLUID `(FIND-PACKAGE ,NAME)) ;;; and use that to replace all three variables.) (defvar *pcl-package* (find-package "SB-PCL")) -(defvar *slot-accessor-name-package* (find-package "SB-SLOT-ACCESSOR-NAME")) ;;; This excludes structure types created with the :TYPE option to ;;; DEFSTRUCT. It also doesn't try to deal with types created by @@ -54,9 +53,15 @@ ;;; it needs a more mnemonic name. -- WHN 19991204 (defun structure-type-p (type) (and (symbolp type) - (let ((class (cl:find-class type nil))) - (and class - (typep (sb-kernel:layout-info (sb-kernel:class-layout class)) - 'sb-kernel:defstruct-description))))) + (not (condition-type-p type)) + (let ((classoid (find-classoid type nil))) + (and classoid + (typep (layout-info + (classoid-layout classoid)) + 'defstruct-description))))) + +(defun condition-type-p (type) + (and (symbolp type) + (condition-classoid-p (find-classoid type nil)))) (/show "finished with early-low.lisp")