Skip to content

Commit

Permalink
Fix some Gray stream default methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak authored and easye committed Nov 20, 2023
1 parent 241eb9e commit 1dc0c31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/armedbear/lisp/gray-streams.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@
(defgeneric stream-read-line (stream))
(defgeneric stream-clear-input (stream))

(defmethod stream-read-char-no-hang ((stream fundamental-character-input-stream))
(stream-read-char stream))

(defmethod stream-peek-char ((stream fundamental-character-input-stream))
(let ((character (stream-read-char stream)))
(unless (eq character :eof)
Expand Down Expand Up @@ -308,7 +311,8 @@
(defgeneric stream-write-string (stream string &optional start end))
(defgeneric stream-terpri (stream))
(defmethod stream-terpri (stream)
(stream-write-char stream #\Newline))
(stream-write-char stream #\Newline)
nil)

(defgeneric stream-fresh-line (stream))
(defgeneric stream-finish-output (stream))
Expand Down

0 comments on commit 1dc0c31

Please sign in to comment.