projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d110c0e
)
Implement FILE-REGULAR?.
author
Chris Hanson
<org/chris-hanson/cph>
Wed, 9 May 2001 14:18:50 +0000
(14:18 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Wed, 9 May 2001 14:18:50 +0000
(14:18 +0000)
v7/src/runtime/sfile.scm
patch
|
blob
|
history
diff --git
a/v7/src/runtime/sfile.scm
b/v7/src/runtime/sfile.scm
index 0f80c61dafea98ef28e906ef0705d0a73e08dd75..071fa7f1f42b62bf8296eb656593e1991792596f 100644
(file)
--- a/
v7/src/runtime/sfile.scm
+++ b/
v7/src/runtime/sfile.scm
@@
-1,6
+1,6
@@
#| -*-Scheme-*-
-$Id: sfile.scm,v 14.2
4 2001/05/09 03:17:11
cph Exp $
+$Id: sfile.scm,v 14.2
5 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)))