X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fkmr-mop.lisp;h=3953c8c279db097a67107bcee86a30a848bb8193;hb=a4097e19c5157e87b9991549bc44f3ef598aeb90;hp=32cc35db0965b93b9f8d0a00c2d92d643adb0cce;hpb=7f0e4a65d1b425f2fa58fc7cce8296c1a6c52c2f;p=clsql.git diff --git a/sql/kmr-mop.lisp b/sql/kmr-mop.lisp index 32cc35d..3953c8c 100644 --- a/sql/kmr-mop.lisp +++ b/sql/kmr-mop.lisp @@ -7,16 +7,16 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: mop.lisp 8573 2004-01-29 23:30:50Z kevin $ +;;;; $Id$ +;;;; +;;;; This file imports MOP symbols into the CLSQL-MOP package and then +;;;; re-exports into CLSQL-SYS them to hide differences in +;;;; MOP implementations. ;;;; ;;;; This file was extracted from the KMRCL utilities ;;;; ************************************************************************* -;;; This file imports MOP symbols into the USQL-MOP package and then -;;; re-exports into CLSQL-USQL-SYS them to hide differences in -;;; MOP implementations. - -(in-package #:clsql-usql-sys) +(in-package #:clsql-sys) #+lispworks (defun intern-eql-specializer (slot) @@ -46,3 +46,17 @@ (declare (ignore metaclass slot-name)) ) +(defun ordered-class-slots (class) + #+(or cmu sbcl) (class-slots class) + #-(or cmu sbcl) (reverse (class-slots class))) + +;; Lispworks has symbol for slot rather than the slot instance +(defun %svuc-slot-name (slot) + #+lispworks slot + #-lispworks (slot-definition-name slot)) + +(defun %svuc-slot-object (slot class) + (declare (ignorable class)) + #+lispworks (clos:find-slot-definition slot class) + #-lispworks slot) +