X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fearly-low.lisp;h=cbe9c779a08ede1b7a10c8ef03013e3d5c3c94e4;hb=b7d22ded1428e8d3e87c37164aa6742dd28aa6ce;hp=7fca8d34d80e7f5ba34bf2eb96154f3e15f50bb7;hpb=c70ef5922e4e5290fab52b90c3614be83c0b8f8b;p=sbcl.git diff --git a/src/pcl/early-low.lisp b/src/pcl/early-low.lisp index 7fca8d3..cbe9c77 100644 --- a/src/pcl/early-low.lisp +++ b/src/pcl/early-low.lisp @@ -44,6 +44,12 @@ ;;; and use that to replace all three variables.) (defvar *pcl-package* (find-package "SB-PCL")) +(declaim (inline defstruct-classoid-p)) +(defun defstruct-classoid-p (classoid) + ;; It is non-obvious to me why STRUCTURE-CLASSOID-P doesn't + ;; work instead of this. -- NS 2008-03-14 + (typep (layout-info (classoid-layout classoid)) 'defstruct-description)) + ;;; This excludes structure types created with the :TYPE option to ;;; DEFSTRUCT. It also doesn't try to deal with types created by ;;; hairy DEFTYPEs, e.g. @@ -53,12 +59,10 @@ ;;; it needs a more mnemonic name. -- WHN 19991204 (defun structure-type-p (type) (and (symbolp type) - (not (condition-type-p type)) (let ((classoid (find-classoid type nil))) (and classoid - (typep (layout-info - (classoid-layout classoid)) - 'defstruct-description))))) + (not (condition-classoid-p classoid)) + (defstruct-classoid-p classoid))))) ;;; Symbol contruction utilities (defun format-symbol (package format-string &rest format-arguments) @@ -99,6 +103,7 @@ *the-class-std-class* *the-class-standard-class* *the-class-funcallable-standard-class* + *the-class-forward-referenced-class* *the-class-method* *the-class-standard-method* *the-class-standard-reader-method*