Changeset 5066
- Timestamp:
- Sep 2, 2006, 10:00:15 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-streams.lisp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-streams.lisp
r5051 r5066 762 762 (setq col 0) 763 763 (incf col)) 764 (setf ( schar buffer i) ch)))764 (setf (aref buffer i) (%char-code ch)))) 765 765 (setf (ioblock-dirty ioblock) t) 766 766 (incf index written) … … 874 874 (%extend-vector 875 875 0 string (the fixnum (+ len more))))) 876 (%copy- ivector-to-ivector876 (%copy-u8-to-string 877 877 buf idx string len more) 878 878 (return (values string nil)))) … … 883 883 string (%extend-vector 884 884 0 string (the fixnum (+ len more)))) 885 (%copy- ivector-to-ivector885 (%copy-u8-to-string 886 886 buf idx string len more) 887 887 (incf len more)))))))) … … 907 907 (if (> avail need) 908 908 (setq avail need)) 909 (%copy- ivector-to-ivectorinbuf idx vector i avail)909 (%copy-u8-to-string inbuf idx vector i avail) 910 910 (setf (io-buffer-idx in) (+ idx avail)) 911 911 (incf i avail) … … 1500 1500 (gvector :basic-stream class 0 nil nil))) 1501 1501 1502 (defmethod initialize-basic-stream ((s basic-stream) &key &allow-other-keys)1503 )1502 (defmethod initialize-basic-stream ((s basic-stream) &key element-type &allow-other-keys) 1503 (setf (getf (basic-stream.info s) :element-type) element-type)) 1504 1504 1505 1505 (defmethod initialize-basic-stream :after ((s basic-input-stream) &key &allow-other-keys) … … 2211 2211 (let* ((ioblock (stream-ioblock s nil))) 2212 2212 (and ioblock (ioblock-device ioblock)))) 2213 2214 (defmethod stream-device ((s basic-stream) direction) 2215 (declare (ignore direction)) 2216 (let* ((ioblock (basic-stream.state s))) 2217 (and ioblock (ioblock-device ioblock)))) 2213 2218 2214 2219 (defmethod stream-element-type ((s buffered-stream-mixin)) 2215 2220 (%buffered-stream-element-type s)) 2216 2221 2222 (defmethod stream-element-type ((s basic-stream)) 2223 (getf (basic-stream.info s) :element-type)) 2224 2225 2217 2226 (defmethod stream-create-ioblock ((stream buffered-stream-mixin) &rest args &key) 2218 2227 (declare (dynamic-extent args)) … … 2224 2233 (defmethod stream-owner ((stream buffered-stream-mixin)) 2225 2234 (let* ((ioblock (stream-ioblock stream nil))) 2235 (and ioblock (ioblock-owner ioblock)))) 2236 2237 (defmethod stream-owner ((stream basic-stream)) 2238 (let* ((ioblock (basic-stream.state stream))) 2226 2239 (and ioblock (ioblock-owner ioblock)))) 2227 2240
Note:
See TracChangeset
for help on using the changeset viewer.
