r9707: fix declaration
[kmrcl.git] / byte-stream.lisp
index d65387f633a66f249ed22c0378212839c26a4012..617cad54f765d9a15ce1b576185fb6c693b10ae2 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  June 2003
 ;;;;
-;;;; $Id: byte-stream.lisp,v 1.2 2003/08/02 22:19:37 kevin Exp $
+;;;; $Id$
 ;;;;
 ;;;; Works for CMUCL, SBCL, and AllergoCL only
 ;;;;
@@ -110,7 +110,11 @@ Make-Byte-Array-Output-Stream since the last call to this function."
   (let ((byte-array (byte-array-input-stream-byte-array stream))
        (index (byte-array-input-stream-current stream)))
     (cond ((= index (byte-array-input-stream-end stream))
-          (eof-or-lose stream eof-errorp eof-value))
+          #+cmu
+          (eof-or-lose stream eof-errorp eof-value)
+          #+sbcl
+          (sb-impl::eof-or-lose stream eof-errorp eof-value)
+          )
          (t
           (setf (byte-array-input-stream-current stream) (1+ index))
           (aref byte-array index)))))
@@ -119,7 +123,11 @@ Make-Byte-Array-Output-Stream since the last call to this function."
   (let ((byte-array (byte-array-input-stream-byte-array stream))
        (index (byte-array-input-stream-current stream)))
     (cond ((= index (byte-array-input-stream-end stream))
-          (eof-or-lose stream eof-errorp eof-value))
+          #+cmu
+          (eof-or-lose stream eof-errorp eof-value)
+          #+sbcl
+          (sb-impl::eof-or-lose stream eof-errorp eof-value)
+          )
          (t
           (setf (byte-array-input-stream-current stream) (1+ index))
           (aref byte-array index)))))
@@ -212,6 +220,7 @@ Make-Byte-Array-Output-Stream since the last call to this function."
   
   (defmethod excl:device-extend ((stream extendable-buffer-output-stream)
                                 need action)
+    (declare (ignore action))
     (let* ((len (file-position stream))
           (new-len (max (+ len need) (* 2 len)))
           (old-buf (slot-value stream 'excl::buffer))