X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fearly-low.lisp;h=abca53479d4a7b66fea887003eb4cb77ab3d4384;hb=bd0ba0f214518e8d72ff2d44de5a1e3e4b02af2c;hp=0d75984edadaa306cf7fea20df41e85f26d0eef8;hpb=2d3cb6dba6461e98744eca2a1df4f770cea468ca;p=sbcl.git diff --git a/src/pcl/early-low.lisp b/src/pcl/early-low.lisp index 0d75984..abca534 100644 --- a/src/pcl/early-low.lisp +++ b/src/pcl/early-low.lisp @@ -53,10 +53,15 @@ ;;; it needs a more mnemonic name. -- WHN 19991204 (defun structure-type-p (type) (and (symbolp type) - (let ((classoid (sb-kernel:find-classoid type nil))) + (not (condition-type-p type)) + (let ((classoid (find-classoid type nil))) (and classoid - (typep (sb-kernel:layout-info - (sb-kernel:classoid-layout classoid)) - 'sb-kernel:defstruct-description))))) + (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")