X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-simple-streams%2Fimpl.lisp;fp=contrib%2Fsb-simple-streams%2Fimpl.lisp;h=d3e3293905b36c5221535f5496b653e3ffa625bd;hb=f7e3e709f7c2207f1923375942f7fb1c092f92b0;hp=c6b696cd4fb7893be554dd89ef85c42ed395e126;hpb=dc9fb9111cb1b645aaede0d3ec019c0f78200be0;p=sbcl.git diff --git a/contrib/sb-simple-streams/impl.lisp b/contrib/sb-simple-streams/impl.lisp index c6b696c..d3e3293 100644 --- a/contrib/sb-simple-streams/impl.lisp +++ b/contrib/sb-simple-streams/impl.lisp @@ -293,12 +293,11 @@ (funcall-stm-handler j-listen (sm melded-stream stream)) (or (< (sm buffpos stream) (sm buffer-ptr stream)) ;; Attempt buffer refill - (let ((lcrs (sm last-char-read-size stream))) - (when (and (not (any-stream-instance-flags stream :dual :string)) - (>= (sm mode stream) 0)) - ;; single-channel stream dirty -> write data before reading - (flush-buffer stream nil)) - (>= (refill-buffer stream nil) width)))))) + (when (and (not (any-stream-instance-flags stream :dual :string)) + (>= (sm mode stream) 0)) + ;; single-channel stream dirty -> write data before reading + (flush-buffer stream nil)) + (>= (refill-buffer stream nil) width))))) (defun %clear-input (stream buffer-only) (declare (type simple-stream stream)) @@ -750,7 +749,6 @@ (defun read-char-no-hang (&optional (stream *standard-input*) (eof-error-p t) eof-value recursive-p) "Returns the next character from the Stream if one is availible, or nil." - (declare (ignore recursive-p)) (let ((stream (sb-impl::in-synonym-of stream))) (etypecase stream (simple-stream