Changeset 5026


Ignore:
Timestamp:
Aug 25, 2006, 7:22:31 PM (18 years ago)
Author:
Gary Byers
Message:

READ-LINE on BASIC-INPUT-STREAM w/o STREAM-READ-LINE.

File:
1 edited

Legend:

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

    r4914 r5026  
    3333
    3434(defun read-line (&optional input-stream (eof-error-p t) eof-value recursive-p)
     35 
    3536  (declare (ignore recursive-p))
    3637  (let* ((input-stream (designated-input-stream input-stream)))
    37     (multiple-value-bind (string eof) (stream-read-line input-stream)
     38    (multiple-value-bind (string eof)
     39        (if (typep input-stream 'basic-stream)
     40          (let* ((ioblock (basic-stream-ioblock input-stream)))
     41            (with-ioblock-input-locked (ioblock)
     42              (%ioblock-read-line ioblock)))
     43          (stream-read-line input-stream))
    3844      (if eof
    3945        (if (= (length string) 0)
Note: See TracChangeset for help on using the changeset viewer.