r11085: support clisp
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 3 Sep 2006 02:12:03 +0000 (02:12 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 3 Sep 2006 02:12:03 +0000 (02:12 +0000)
debian/changelog
hyperobject.asd
package.lisp
tests.lisp
views.lisp

index 52b5d7b700f086cdb118731f0692a8cab8cbdba5..18ecc1957946b4999d7d56475e2634081c0b9240 100644 (file)
@@ -1,8 +1,10 @@
-cl-hyperobject (2.9.3-1) unstable; urgency=low
+cl-hyperobject (2.10.0-1) unstable; urgency=low
 
   * Support CLISP
+  * Remove implementation-dependent access of type slot using
+    slot-definition-type instead.
 
- -- Kevin M. Rosenberg <kmr@debian.org>  Wed, 30 Aug 2006 22:18:00 -0600
+ -- Kevin M. Rosenberg <kmr@debian.org>  Fri, 01 Sep 2006 08:49:25 -0600
 
 cl-hyperobject (2.9.2-1) unstable; urgency=low
 
index 5cb624b62a2fb01c785c381c5a639b0d9c2b1fcf..7848baf57a4ec45f396f20e79ab2b0741a73c101 100644 (file)
@@ -35,6 +35,3 @@
 (defmethod perform ((o test-op) (c (eql (find-system :hyperobject))))
   (operate 'load-op 'hyperobject-tests)
   (operate 'test-op 'hyperobject-tests :force t))
-
-
-
index 39664bf628cda9d11b93b859c6845d022ab10b38..89aa5ccc0000397de193e0e1b0bd17ba11ba0568 100644 (file)
@@ -73,6 +73,7 @@
      sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
      sb-pcl::compute-effective-slot-definition-initargs
      sb-pcl::slot-value-using-class
+     sb-pcl:slot-definition-type
      sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
      sb-pcl:make-method-lambda sb-pcl:generic-function-lambda-list
      sb-pcl::class-precedence-list)
      pcl::slot-value-using-class
      pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
      pcl:make-method-lambda pcl:generic-function-lambda-list
+     pcl:slot-definition-type
      pcl::class-precedence-list)
    #+clisp
    '(clos:class-name clos:class-slots clos:find-class clos::standard-class
      clos::slot-definition-name clos:finalize-inheritance
      clos::standard-direct-slot-definition clos::standard-effective-slot-definition
      clos::validate-superclass clos:direct-slot-definition-class
+     clos:effective-slot-definition-class
+     clos:slot-definition-type
      clos:compute-effective-slot-definition
      clos::compute-effective-slot-definition-initargs
      clos::slot-value-using-class
    #+scl
    '(clos::compute-effective-slot-definition-initargs
      clos::class-prototype
+     clos:slot-definition-type
      ;; note: make-method-lambda is not fbound
      )
 
index 9b68d9891fcda355cd1ed4b07ddbf6b6c4ba51ae..15dc08203d0a69c3debf75a8d337b6d5a27b8e01 100644 (file)
@@ -40,7 +40,7 @@
    (addresses :initarg :addresses :accessor addresses
               :subobject t))
   (:metaclass hyperobject-class)
-  (:default-initargs :first-name "" :last-name "" :dob 0 :resume nil) 
+  (:default-initargs :first-name "" :last-name "" :dob 0 :resume nil)
   (:default-print-slots first-name last-name dob resume)
   (:user-name "Person")
   (:description "A Person")
@@ -58,7 +58,7 @@
    (phones :initarg :phones :accessor phones
            :subobject t))
   (:metaclass hyperobject-class)
-  (:default-initargs :title nil :street nil) 
+  (:default-initargs :title nil :street nil)
   (:user-name "Address" "Addresses")
   (:default-print-slots title street)
   (:description "An address"))
@@ -90,7 +90,7 @@
 (defparameter office (make-instance 'address :title "Office" :street "113 Main St."
                                    :phones (list office-phone-1 office-phone-2 office-phone-3)))
 
-                             
+
 (defparameter mary (make-instance 'person :first-name "Mary" :last-name "Jackson"
                            :dob (encode-universal-time
                                  1 2 3 4 5 2000)
 
 (rem-all-tests)
 
-(deftest p1 (view-to-string mary) "Person:
+(deftest :p1 (view-to-string mary :vid :compact-text) "Person:
   Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
 ")
 
-(deftest p2 (view-to-string mary :subobjects t) "Person:
+(deftest :p2 (view-to-string mary :subobjects t :vid :compact-text) "Person:
   Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
   Addresses:
     Home 321 Shady Lane
       Fax 123-0005
 ")
 
-(deftest p3 (view-to-string mary :vid :compact-text-labels)
+(deftest :p3 (view-to-string mary :vid :compact-text-labels)
   "Person:
   first-name Mary last-name Jackson dob Thu, 4 May 2000 03:02:01 resume Style & Grace
 ")
 
+(deftest :p4 (view-to-string mary :vid :compact-text)
+"Person:
+  Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
+")
+
index b9274aafb7834e10e19c95505d9dc0cbec94e07c..91217bd44b6b864e64ed79f0b27ab4b69eb9dccd 100644 (file)
         (user-name (esd-user-name slot))
         (xml-user-name (escape-xml-string user-name))
         (xml-tag (escape-xml-string user-name))
-        (type (slot-value slot #-sbcl 'type
-                                #+sbcl 'sb-pcl::%type))
+        (type (slot-definition-type slot))
+
         (cdata (not (null
                      (and (in vid :xml :xhtml :xml-link :xhtml-link
                               :xml-labels :ie-xml-labels