Skip to content

Commit

Permalink
Make CLEAR-INPUT on a STRING-INPUT-STREAM cause any further input to …
Browse files Browse the repository at this point in the history
…see EOF.
  • Loading branch information
gmpalter committed Mar 5, 2024
1 parent 18fe9e2 commit c197bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion level-1/l1-streams.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4789,7 +4789,8 @@
(< idx end)))

(defmethod stream-clear-input ((s string-input-stream))
(basic-stream-ioblock s)
(let ((ioblock (basic-stream-ioblock s)))
(setf (string-input-stream-ioblock-index ioblock) (string-input-stream-ioblock-end ioblock)))
nil)

(defun string-input-stream-character-read-vector (ioblock vector start end)
Expand Down

0 comments on commit c197bd0

Please sign in to comment.