X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=equal.lisp;h=0da3c4865ccb307735fc27a2a9be5f708984be83;hp=0d6ea59cebeeca44fc3b190bcd5666c875baf9a1;hb=a5e8d90b159f1a8dcef4e954a97cae6eb5396423;hpb=8bf1e821e49e22d0e8ae724d00ae1802e69c0056 diff --git a/equal.lisp b/equal.lisp index 0d6ea59..0da3c48 100644 --- a/equal.lisp +++ b/equal.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: equal.lisp,v 1.4 2003/03/25 04:26:47 kevin Exp $ +;;;; $Id: equal.lisp,v 1.14 2003/05/07 21:57:10 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -37,7 +37,7 @@ (complex (and (generalized-equal (realpart obj1) (realpart obj2)) (generalized-equal (imagpart obj1) (imagpart obj2)))) - (standard-xstructure + (structure-object (generalized-equal-fielded-object obj1 obj2)) (standard-object (generalized-equal-fielded-object obj1 obj2)) @@ -89,16 +89,9 @@ (defun class-slot-names (c-name) "Given a CLASS-NAME, returns a list of the slots in the class." - #+(or allegro lispworks scl) - (mapcar #'clos:slot-definition-name - (clos:class-slots (find-class c-name))) - #+sbcl (if (find-package 'sb-mop) - (mapcar #'sb-mop::slot-definition-name - (sb-mop:class-slots (find-class c-name))) - (mapcar #'sb-pcl::slot-definition-name - (sb-pcl:class-slots (sb-pcl:find-class c-name)))) - #+cmu (mapcar #'pcl::slot-definition-name - (pcl:class-slots (pcl:find-class c-name))) + #+(or allegro cmu lispworks sbcl scl) + (mapcar #'kmr-mop:slot-definition-name + (kmr-mop:class-slots (kmr-mop:find-class c-name))) #+mcl (let* ((class (find-class c-name nil))) (when (typep class 'standard-class) @@ -113,13 +106,8 @@ #+allegro (class-slot-names s-name) #+lispworks (structure:structure-class-slot-names (find-class s-name)) - #+sbcl (if (find-package 'sb-mop) - (mapcar #'sb-mop::slot-definition-name - (sb-mop:class-slots (find-class s-name))) - (mapcar #'sb-pcl::slot-definition-name - (sb-pcl:class-slots (sb-pcl:find-class s-name))) - #+cmu (mapcar #'pcl::slot-definition-name - (pcl:class-slots (pcl:find-class s-name))) + #+(or sbcl cmu) (mapcar #'kmr-mop:slot-definition-name + (kmr-mop:class-slots (kmr-mop:find-class s-name))) #+scl (mapcar #'kernel:dsd-name (kernel:dd-slots (kernel:layout-info @@ -131,7 +119,6 @@ (error "structure-slot-names is not defined on this platform") ) - (defun function-to-string (obj) "Returns the lambda code for a function. Relies on Allegro implementation-dependent features."