Changeset 5673
- Timestamp:
- Jan 2, 2007, 8:57:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-streams.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-streams.lisp
r5606 r5673 3687 3687 (let* ((ioblock (basic-stream-ioblock stream))) 3688 3688 (with-ioblock-input-locked (ioblock) 3689 (values 3690 (funcall (ioblock-read-line-function ioblock) ioblock))))) 3689 (funcall (ioblock-read-line-function ioblock) ioblock)))) 3691 3690 3692 3691 … … 3749 3748 (make-instance 'synonym-stream :symbol (require-type symbol 'symbol))) 3750 3749 3750 ;;; 3751 (defclass composite-stream-mixin () 3752 ((open-p :initform t))) 3753 3754 (defmethod close :after ((stream composite-stream-mixin) &key abort) 3755 (declare (ignore abort)) 3756 (with-slots (open-p) stream 3757 (setq open-p nil))) 3758 3759 (defmethod open-stream-p ((stream composite-stream-mixin)) 3760 (slot-value stream 'open-p)) 3761 3751 3762 3752 3763 3753 3764 ;;; Two-way streams. 3754 (defclass two-way-stream ( fundamental-input-stream fundamental-output-stream)3765 (defclass two-way-stream (composite-stream-mixin fundamental-input-stream fundamental-output-stream) 3755 3766 ((input-stream :initarg :input-stream :accessor two-way-stream-input-stream) 3756 3767 (output-stream :initarg :output-stream :accessor two-way-stream-output-stream))) … … 3910 3921 ;;;concatenated-streams 3911 3922 3912 (defclass concatenated-stream (fundamental-input-stream) 3913 ((stream :initarg :streams :accessor concatenated-stream-streams))) 3923 (defclass concatenated-stream (composite-stream-mixin fundamental-input-stream) 3924 ((streams :initarg :streams :accessor concatenated-stream-streams))) 3925 3914 3926 3915 3927 (defun concatenated-stream-current-input-stream (s)
Note:
See TracChangeset
for help on using the changeset viewer.
