mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
fixing non-string-stream read-line to return eof when no data is read
This commit is contained in:
parent
7dd7d076dd
commit
e8c0328540
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@
|
|||
(let ((ch (read-char in)))
|
||||
(cond
|
||||
((eof-object? ch)
|
||||
(get-output-string out))
|
||||
(let ((res (get-output-string out)))
|
||||
(and (not (equal? res "")) res)))
|
||||
(else
|
||||
(write-char ch out)
|
||||
(if (eqv? ch #\newline)
|
||||
|
|
Loading…
Add table
Reference in a new issue