Parcourir la source

Added support for MOCL

Wukix Inc il y a 13 ans
Parent
commit
0cf9b0f162
2 fichiers modifiés avec 16 ajouts et 3 suppressions
  1. 14 0
      mixin.lisp
  2. 2 3
      package.lisp

+ 14 - 0
mixin.lisp

@@ -202,3 +202,17 @@
   (defmethod gray:stream-write-sequence
     ((s trivial-gray-stream-mixin) seq &optional start end)
     (stream-write-sequence s seq (or start 0) (or end (length seq)))))
+
+#+mocl
+(progn
+  (defmethod gray:stream-read-sequence
+      ((s trivial-gray-stream-mixin) seq &optional start end)
+    (stream-read-sequence s seq (or start 0) (or end (length seq))))
+  (defmethod gray:stream-write-sequence
+      ((s trivial-gray-stream-mixin) seq &optional start end)
+    (stream-write-sequence s seq (or start 0) (or end (length seq))))
+  (defmethod gray:stream-file-position
+      ((stream trivial-gray-stream-mixin) &optional position)
+    (if position
+	(setf (stream-file-position stream) position)
+	(stream-file-position stream))))

+ 2 - 3
package.lisp

@@ -41,12 +41,11 @@
 	    (:import-from #+sbcl :sb-gray
 			  #+allegro :excl
 			  #+cmu :ext
-			  #+clisp :gray
+			  #+(or clisp ecl mocl) :gray
 			  #+openmcl :ccl
 			  #+lispworks :stream
-                          #+ecl :gray
 			  #+abcl :gray-streams
-			  #-(or sbcl allegro cmu clisp openmcl lispworks ecl abcl) ...
+			  #-(or sbcl allegro cmu clisp openmcl lispworks ecl abcl mocl) ...
 			  ,@common-symbols)
 	    (:export #:trivial-gray-stream-mixin
 		     #:stream-read-sequence