From d937f0dea0fb5aa941e235027eac30c67f14d401 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 9 May 2001 14:18:50 +0000 Subject: [PATCH] Implement FILE-REGULAR?. --- v7/src/runtime/sfile.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v7/src/runtime/sfile.scm b/v7/src/runtime/sfile.scm index 0f80c61da..071fa7f1f 100644 --- a/v7/src/runtime/sfile.scm +++ b/v7/src/runtime/sfile.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: sfile.scm,v 14.24 2001/05/09 03:17:11 cph Exp $ +$Id: sfile.scm,v 14.25 2001/05/09 14:18:50 cph Exp $ Copyright (c) 1988-2001 Massachusetts Institute of Technology @@ -68,6 +68,9 @@ USA. (set! file-type-indirect (make-file-type (ucode-primitive file-type-indirect 1)))) +(define (file-regular? filename) + (eq? 'REGULAR (file-type-indirect filename))) + (define (file-directory? filename) (eq? 'DIRECTORY (file-type-indirect filename))) -- 2.25.1