Minor sb-simple-streams frobs...
... (member character), not (member 'character);
... pass END explicitly to DEVICE-WRITE (thanks to David
Lichteblau).
||#
-(handler-bind ((error #'(lambda (condition) (declare (ignore condition))
- (continue))))
+(handler-bind ((error #'continue))
(sb-c:defknown open (t &rest t
&key (:direction (member :input :output :io :probe))
(:element-type sb-kernel:type-specifier)
)
(sb-c:defknown listen (&optional sb-kernel:streamlike
- (or null (integer 1 10) (member 'character)))
+ (or null (integer 1 10) (member character)))
boolean (sb-c::unsafely-flushable sb-c::explicit-check))
(sb-c:defknown read-sequence (sequence stream &key (:start sb-int:index)
start end blocking)
(when (and (null buffer) (not (eql start end)))
(with-stream-class (single-channel-simple-stream stream)
- (setf buffer (sm buffer stream))
- (setf end (sm buffpos stream))))
+ (setf buffer (sm buffer stream))))
(write-octets stream buffer start end blocking))
(defmethod device-write ((stream dual-channel-simple-stream) buffer
start end blocking)
(when (and (null buffer) (not (eql start end)))
(with-stream-class (dual-channel-simple-stream stream)
- (setf buffer (sm out-buffer stream))
- (setf end (sm outpos stream))))
+ (setf buffer (sm out-buffer stream))))
(write-octets stream buffer start end blocking))
(defmethod device-clear-output ((stream simple-stream))
(sm buffer-ptr stream) 0)
(remove-stream-instance-flags stream :dirty)
(return 0))
- (let ((bytes-written (device-write stream nil ptr nil blocking)))
+ (let ((bytes-written (device-write stream nil ptr bytes blocking)))
(declare (fixnum bytes-written))
(when (minusp bytes-written)
(error "DEVICE-WRITE error."))
(declare (type fixnum ptr bytes))
(loop
(when (>= ptr bytes) (setf (sm outpos stream) 0) (return 0))
- (let ((bytes-written (device-write stream nil ptr nil blocking)))
+ (let ((bytes-written (device-write stream nil ptr bytes blocking)))
(declare (fixnum bytes-written))
(when (minusp bytes-written)
(error "DEVICE-WRITE error."))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.2.4"
+"0.8.2.5"