From 891d2ba6c4d3f906a156c4d3ee166ceb27b00332 Mon Sep 17 00:00:00 2001
From: dtc <dtc>
Date: Sat, 17 Jun 2000 06:34:07 +0000
Subject: [PATCH] Ignore the recursive-p argument to peek-char, rather than
 having it override eof-errorp when true. Seems to be that interpretation made
 by other implementations. From Raymond Toy.

---
 code/stream.lisp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/code/stream.lisp b/code/stream.lisp
index 5f8297af1..276a6defc 100644
--- a/code/stream.lisp
+++ b/code/stream.lisp
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.40 2000/04/05 04:26:53 dtc Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.41 2000/06/17 06:34:07 dtc Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -347,8 +347,8 @@
 (defun peek-char (&optional (peek-type nil) (stream *standard-input*)
 			    (eof-errorp t) eof-value recursive-p)
   "Peeks at the next character in the input Stream.  See manual for details."
-  (let ((stream (in-synonym-of stream))
-	(eof-errorp (or eof-errorp recursive-p)))
+  (declare (ignore recursive-p))
+  (let ((stream (in-synonym-of stream)))
     (if (lisp-stream-p stream)
 	(let ((char (read-char stream eof-errorp eof-value)))
 	  (cond ((eq char eof-value) char)
-- 
GitLab