Changeset 5575
- Timestamp:
- Dec 3, 2006, 4:09:16 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-streams.lisp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-streams.lisp
r5520 r5575 3405 3405 ;;; array and that the 'start' and 'end' arguments are sane. 3406 3406 3407 (defmethod stream-write-vector ((stream fundamental-character-output-stream)3407 (defmethod stream-write-vector ((stream character-output-stream) 3408 3408 vector start end) 3409 3409 (declare (fixnum start end)) … … 3411 3411 ((= i end)) 3412 3412 (declare (fixnum i)) 3413 ( stream-write-char stream (uvref vector i))))3414 3415 (defmethod stream-write-vector ((stream fundamental-binary-output-stream)3413 (write-char (uvref vector i) stream))) 3414 3415 (defmethod stream-write-vector ((stream binary-output-stream) 3416 3416 vector start end) 3417 3417 (declare (fixnum start end)) … … 3419 3419 ((= i end)) 3420 3420 (declare (fixnum i)) 3421 ( stream-write-byte stream (uvref vector i))))3422 3423 (defmethod stream-read-vector ((stream fundamental-character-input-stream)3421 (write-byte (uvref vector i) stream))) 3422 3423 (defmethod stream-read-vector ((stream character-input-stream) 3424 3424 vector start end) 3425 3425 (generic-character-read-vector stream vector start end)) 3426 3426 3427 3427 3428 (defmethod stream-read-vector ((stream fundamental-binary-input-stream)3428 (defmethod stream-read-vector ((stream binary-input-stream) 3429 3429 vector start end) 3430 3430 (declare (fixnum start end)) … … 3432 3432 ((= i end) end) 3433 3433 (declare (fixnum i)) 3434 (let* ((b ( stream-read-byte stream)))3434 (let* ((b (read-byte stream))) 3435 3435 (if (eq b :eof) 3436 3436 (return i) … … 3573 3573 (stream-write-char stream (pop list)))) 3574 3574 3575 (defmethod stream-read-list ((stream fundamental-character-input-stream)3575 (defmethod stream-read-list ((stream character-input-stream) 3576 3576 list count) 3577 3577 (generic-character-read-list stream list count)) 3578 3578 3579 (defmethod stream-read-list ((stream basic-character-input-stream)3580 list count)3581 (generic-character-read-list stream list count))3582 3579 3583 3580 (defmethod stream-write-list ((stream fundamental-binary-output-stream) … … 3599 3596 (write-byte element stream))))) 3600 3597 3601 (defmethod stream-read-list ((stream fundamental-binary-input-stream) 3602 list count) 3603 (declare (fixnum count)) 3604 (do* ((tail list (cdr tail)) 3605 (i 0 (1+ i))) 3606 ((= i count) count) 3607 (declare (fixnum i)) 3608 (let* ((b (stream-read-byte stream))) 3609 (if (eq b :eof) 3610 (return i) 3611 (rplaca tail b))))) 3612 3613 (defmethod stream-read-list ((stream basic-binary-input-stream) 3598 (defmethod stream-read-list ((stream binary-input-stream) 3614 3599 list count) 3615 3600 (declare (fixnum count)) … … 3623 3608 (rplaca tail b))))) 3624 3609 3625 (defmethod stream-read-vector ((stream basic-character-input-stream) 3626 vector start end) 3627 (generic-character-read-vector stream vector start end)) 3628 3629 (defmethod stream-read-vector ((stream b asic-binary-input-stream)3610 3611 3612 3613 3614 (defmethod stream-read-vector ((stream binary-input-stream) 3630 3615 vector start end) 3631 3616 (declare (fixnum start end)) … … 3633 3618 ((= i end) end) 3634 3619 (declare (fixnum i)) 3635 (let* ((b ( stream-read-byte stream)))3620 (let* ((b (read-byte stream))) 3636 3621 (if (eq b :eof) 3637 3622 (return i) … … 3681 3666 (declare (fixnum start end)) 3682 3667 (if (not (typep vector 'simple-base-string)) 3683 ( call-next-method)3668 (generic-character-read-vector stream vector start end) 3684 3669 (let* ((ioblock (basic-stream-ioblock stream))) 3685 3670 (with-ioblock-input-locked (ioblock)
Note:
See TracChangeset
for help on using the changeset viewer.
