From 6d682f12b5b4a19363a06fdaa7f75957643ed855 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 25 Mar 2003 05:21:04 +0000 Subject: [PATCH] r4240: Auto commit for Debian build --- debian/changelog | 6 ++++++ equal.lisp | 25 +++++++++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index b3e7509..52ba271 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cl-kmrcl (1.28-1) unstable; urgency=low + + * Fix sbcl for versions without sb-mop package + + -- Kevin M. Rosenberg Mon, 24 Mar 2003 22:19:49 -0700 + cl-kmrcl (1.27-1) unstable; urgency=low * New upstream for sbcl 0.8pre MOP changes diff --git a/equal.lisp b/equal.lisp index 1bbbc5e..04df330 100644 --- a/equal.lisp +++ b/equal.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: equal.lisp,v 1.6 2003/03/25 04:52:04 kevin Exp $ +;;;; $Id: equal.lisp,v 1.7 2003/03/25 05:21:04 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -87,15 +87,20 @@ (return-from test nil))) (return-from test t))) +#+sbcl +(eval-when (:toplevel-compile :toplevel-load :execute) + (if (find-package 'sb-mop) + (pushnew :sb-mop cl:*features*) + (pushnew :sb-acl cl:*features*))) + (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 + #+sbcl-mop (mapcar #'sb-mop::slot-definition-name (sb-mop:class-slots (find-class c-name))) - (mapcar #'sb-pcl::slot-definition-name + #+sbcl-pcl (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))) @@ -113,11 +118,10 @@ #+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 + #+sbcl-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)))) + #+sbcl-pcl (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))) #+scl (mapcar #'kernel:dsd-name @@ -132,6 +136,11 @@ ) +(eval-when (:toplevel-compile :toplevel-load :execute) + (if (find-package 'sb-mop) + (setq cl:*features* (delete :sb-mop cl:*features*)) + (setq cl:*features* (delete :sb-acl cl:*features*)))) + (defun function-to-string (obj) "Returns the lambda code for a function. Relies on Allegro implementation-dependent features." -- 2.34.1