From c7b064af71cdfc792ee2a96c86eab27b4c6ee0ce Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 24 Oct 2005 02:47:47 +0000 Subject: [PATCH] LENGTH operation is valid for both input _and_ output files. --- v7/src/runtime/fileio.scm | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/v7/src/runtime/fileio.scm b/v7/src/runtime/fileio.scm index 6a93d9a30..5062c7048 100644 --- a/v7/src/runtime/fileio.scm +++ b/v7/src/runtime/fileio.scm @@ -1,9 +1,9 @@ #| -*-Scheme-*- -$Id: fileio.scm,v 1.22 2004/02/16 05:36:25 cph Exp $ +$Id: fileio.scm,v 1.23 2005/10/24 02:47:47 cph Exp $ Copyright 1991,1993,1994,1995,1996,1999 Massachusetts Institute of Technology -Copyright 2001,2004 Massachusetts Institute of Technology +Copyright 2001,2004,2005 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -30,21 +30,17 @@ USA. (declare (usual-integrations)) (define (initialize-package!) - (let ((input-operations - `((LENGTH ,operation/length))) - (other-operations + (let ((other-operations `((WRITE-SELF ,operation/write-self) + (LENGTH ,operation/length) (PATHNAME ,operation/pathname) (TRUENAME ,operation/truename)))) (set! input-file-type - (make-port-type (append input-operations other-operations) - generic-input-type)) + (make-port-type other-operations generic-input-type)) (set! output-file-type - (make-port-type other-operations - generic-output-type)) + (make-port-type other-operations generic-output-type)) (set! i/o-file-type - (make-port-type (append input-operations other-operations) - generic-i/o-type))) + (make-port-type other-operations generic-i/o-type))) unspecific) (define input-file-type) -- 2.25.1