Changeset 4908


Ignore:
Timestamp:
Jul 24, 2006, 3:55:40 AM (18 years ago)
Author:
Gary Byers
Message:

READ-CHAR bypasses STREAM-READ-CHAR for BASIC-STREAMs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/streams.lisp

    r2453 r4908  
    4848  (setq input-stream (designated-input-stream input-stream))
    4949  (check-eof
    50    (stream-read-char input-stream)
     50   (if (typep input-stream 'basic-stream)
     51     (let* ((ioblock (basic-stream.state input-stream)))
     52       (if ioblock
     53         (funcall (ioblock-read-char-function ioblock) ioblock)
     54         (error "~s is closed" input-stream)))
     55     (stream-read-char input-stream))
    5156   input-stream
    5257   eof-error-p
Note: See TracChangeset for help on using the changeset viewer.