Explorar el Código

FILE-POSITION support for Allegro CL. Thanks to Bart Botta.

avodonosov hace 15 años
padre
commit
514076746b
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      mixin.lisp

+ 8 - 1
mixin.lisp

@@ -48,9 +48,16 @@
   (defmethod excl: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 stream:stream-write-sequence
       ((s trivial-gray-stream-mixin) seq &optional start end)
-    (stream-write-sequence s seq (or start 0) (or end (length seq)))))
+    (stream-write-sequence s seq (or start 0) (or end (length seq))))
+
+  (defmethod excl::stream-file-position
+       ((stream trivial-gray-stream-mixin) &optional position)
+     (if position
+         (setf (stream-file-position stream) position)
+         (stream-file-position stream))))
 
 #+cmu
 (progn