Changeset 462
- Timestamp:
- Feb 2, 2004, 8:08:41 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-streams.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-streams.lisp
r441 r462 238 238 (stream-write-string stream string)) 239 239 240 241 (defmethod stream-read-char ((x t)) 242 (report-bad-arg x 'stream)) 243 240 244 (defmethod stream-read-char ((stream stream)) 241 245 (error "~s is not capable of input" stream)) 246 247 (defmethod stream-unread-char ((x t) char) 248 (declare (ignore char)) 249 (report-bad-arg x 'stream)) 242 250 243 251 (defmethod stream-unread-char ((stream stream) char) … … 1042 1050 1043 1051 1052 (defmethod stream-read-byte ((s t)) 1053 (report-bad-arg s '(and input-stream fundamental-binary-stream))) 1054 1055 (defmethod stream-write-byte ((s t) b) 1056 (declare (ignore b)) 1057 (report-bad-arg s '(and output-stream fundamental-binary-stream))) 1058 1044 1059 (defmethod stream-length ((s stream) &optional new) 1045 1060 (declare (ignore new))) … … 2266 2281 (%incf-ptr buf written))))))) 2267 2282 2283 (defmethod stream-read-line ((s buffered-stream-mixin)) 2284 (with-stream-ioblock-input (ioblock s :speedy t) 2285 (%ioblock-read-line ioblock))) 2286 2268 2287 (defmethod stream-clear-input ((s fd-input-stream)) 2269 2288 (call-next-method) … … 2342 2361 ;; Don't use an OR type here 2343 2362 (file-stream (stream-length stream)) 2344 (broadcast-stream (stream-length stream)))) 2363 (synonym-stream (file-length 2364 (symbol-value (synonym-stream-symbol stream)))) 2365 (broadcast-stream (let* ((last (last-broadcast-stream stream))) 2366 (if last 2367 (file-length last) 2368 0))))) 2345 2369 2346 2370 (defun file-position (stream &optional position)
Note:
See TracChangeset
for help on using the changeset viewer.
