X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=byte-stream.lisp;h=a22d4d136cec0a8f236586d39d47b30626d74a7e;hb=5a9e627680c632c3ed11fa66d0287ae8574b8ceb;hp=36f77e7048ff9822b83a66aab06db3e506312adf;hpb=7fad9c10510187764a6afbe0ac070a68011278b8;p=kmrcl.git diff --git a/byte-stream.lisp b/byte-stream.lisp index 36f77e7..a22d4d1 100644 --- a/byte-stream.lisp +++ b/byte-stream.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: June 2003 ;;;; -;;;; $Id: byte-stream.lisp,v 1.1 2003/07/05 02:32:08 kevin Exp $ +;;;; $Id: byte-stream.lisp,v 1.3 2003/08/27 20:07:08 kevin Exp $ ;;;; ;;;; Works for CMUCL, SBCL, and AllergoCL only ;;;; @@ -21,6 +21,8 @@ (in-package #:kmrcl) +;; Intial CMUCL version by OnShored. Ported to SBCL by Kevin Rosenberg + #+(or cmu sbcl) (progn (defstruct (byte-array-output-stream @@ -108,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))))) @@ -117,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))))) @@ -174,6 +184,9 @@ Make-Byte-Array-Output-Stream since the last call to this function." ) ;; progn + +;;; Simple streams implementation by Kevin Rosenberg + #+allegro (progn