r9244: Automated commit for Debian build of clsql upstream-version-2.10.11
[clsql.git] / sql / kmr-mop.lisp
index 7f58124de9ecda9bb6a1bc0090eccf2409793370..b709f1bea9c0b7ec81b21f4bd6ee462d9e93b881 100644 (file)
@@ -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 CLSQL-MOP package and then
-;;; re-exports into CLSQL-SYS them to hide differences in
-;;; MOP implementations.
-
-(in-package #:clsql-sys)
+(in-package #:clsql)
 
 #+lispworks
 (defun intern-eql-specializer (slot)
   (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)
+