From bf3d312e3d0fdbc8ac5371fffcab205d828783ae Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 30 Jul 2003 17:06:23 +0000 Subject: [PATCH] Change EOF object to be an opaque type. --- v7/src/runtime/input.scm | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/v7/src/runtime/input.scm b/v7/src/runtime/input.scm index df8b0833b..af37a993d 100644 --- a/v7/src/runtime/input.scm +++ b/v7/src/runtime/input.scm @@ -1,8 +1,9 @@ #| -*-Scheme-*- -$Id: input.scm,v 14.23 2003/02/14 18:28:32 cph Exp $ +$Id: input.scm,v 14.24 2003/07/30 17:06:23 cph Exp $ -Copyright (c) 1988-1999, 2002 Massachusetts Institute of Technology +Copyright 1986,1987,1988,1989,1990,1991 Massachusetts Institute of Technology +Copyright 1992,1993,1997,1999,2002,2003 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -27,7 +28,7 @@ USA. ;;; package: (runtime input-port) (declare (usual-integrations)) - + ;;;; Input Ports (define (input-port/char-ready? port interval) @@ -60,15 +61,10 @@ USA. (input-port/discard-char port) line)) -(define eof-object - "EOF Object") - -(define (eof-object? object) - (eq? object eof-object)) - -(define (make-eof-object port) - port - eof-object) +(define (make-record-type ' '())) +(define eof-object? (record-predicate )) +(define eof-object (make-eof-object)) +(define (make-eof-object port) port eof-object) ;;;; Input Procedures -- 2.25.1