From: Chris Hanson Date: Wed, 9 May 2001 14:18:50 +0000 (+0000) Subject: Implement FILE-REGULAR?. X-Git-Tag: 20090517-FFI~2836 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=d937f0dea0fb5aa941e235027eac30c67f14d401;p=mit-scheme.git Implement FILE-REGULAR?. --- 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)))