Changeset 5051
- Timestamp:
- Aug 28, 2006, 3:57:55 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-streams.lisp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-streams.lisp
r5024 r5051 587 587 limit (io-buffer-count buf))) 588 588 (setf (io-buffer-idx buf) (the fixnum (1+ idx))) 589 ( schar (io-buffer-buffer buf) idx)))))589 (%code-char (aref (the (simple-array (unsigned-byte 8) (*)) (io-buffer-buffer buf)) idx)))))) 590 590 591 591 (defun %private-ioblock-tyi (ioblock) … … 605 605 limit (io-buffer-count buf))) 606 606 (setf (io-buffer-idx buf) (the fixnum (1+ idx))) 607 ( schar (io-buffer-buffer buf) idx))))607 (%code-char (aref (the (simple-array (unsigned-byte 8) (*)) (io-buffer-buffer buf)) idx))))) 608 608 609 609 (defun %locked-ioblock-tyi (ioblock) … … 624 624 limit (io-buffer-count buf))) 625 625 (setf (io-buffer-idx buf) (the fixnum (1+ idx))) 626 ( schar (io-buffer-buffer buf) idx)))))626 (%code-char (aref (the (simple-array (unsigned-byte 8) (*)) (io-buffer-buffer buf)) idx)))))) 627 627 628 628 (declaim (inline %ioblock-tyy-no-hang)) … … 643 643 limit (io-buffer-count buf))) 644 644 (setf (io-buffer-idx buf) (the fixnum (1+ idx))) 645 ( schar (io-buffer-buffer buf) idx))))645 (%code-char (aref (the (simple-array (unsigned-byte 8) (*)) (io-buffer-buffer buf)) idx))))) 646 646 647 647 … … 657 657 (setq idx (io-buffer-idx buf) 658 658 limit (io-buffer-count buf))) 659 (let ((byte (uvref (io-buffer-buffer buf) idx))) 660 (if (characterp byte) byte (%code-char byte)))))) 659 (%code-char (aref (the (simple-array (unsigned-byte 8) (*)) (io-buffer-buffer buf)) idx))))) 661 660 662 661 (defun %ioblock-clear-input (ioblock) … … 737 736 (buffer (io-buffer-buffer out))) 738 737 (declare (fixnum written bufsize col) 739 ( simple-stringbuffer)738 (type (simple-array (unsigned-byte 8) (*)) buffer) 740 739 (optimize (speed 3) (safety 0))) 741 740 (do* ((pos start-octet (+ pos written)) … … 2367 2366 (%ioblock-eofp ioblock))) 2368 2367 2368 (defmethod stream-eofp ((stream basic-input-stream)) 2369 (let* ((ioblock (basic-stream-ioblock stream))) 2370 (with-ioblock-input-locked (ioblock) 2371 (%ioblock-eofp ioblock)))) 2372 2369 2373 (defmethod stream-listen ((stream buffered-input-stream-mixin)) 2370 2374 (with-stream-ioblock-input (ioblock stream :speedy t) 2371 2375 (%ioblock-listen ioblock))) 2376 2377 (defmethod stream-listen ((stream basic-input-stream)) 2378 (let* ((ioblock (basic-stream-ioblock stream))) 2379 (with-ioblock-input-locked (ioblock) 2380 (%ioblock-listen ioblock)))) 2372 2381 2373 2382 (defun flush-ioblock (ioblock finish-p) … … 2409 2418 (let* ((ioblock (stream-ioblock stream nil))) 2410 2419 (and ioblock (ioblock-charpos ioblock)))) 2420 2421 (defmethod stream-line-column ((stream basic-character-output-stream)) 2422 (let* ((ioblock (basic-stream.state stream))) 2423 (and ioblock (ioblock-charpos ioblock)))) 2424 2425 2411 2426 2412 2427 (defmethod stream-set-column ((stream buffered-character-output-stream-mixin)
Note:
See TracChangeset
for help on using the changeset viewer.
