#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.23 1991/08/20 22:01:33 arthur Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.24 1991/08/22 15:18:02 arthur Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
(pathname->input-truename pathname)
(load/default-find-pathname-with-type pathname
default-types)))))
- (if (not truename)
- (error:open-file pathname))
- truename)))
+ (or truename
+ (find-true-pathname (->pathname (error:open-file pathname))
+ default-types)))))
(define (search-types-in-order pathname default-types)
(let loop ((types default-types))
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/pathnm.scm,v 14.11 1991/02/15 18:06:34 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/pathnm.scm,v 14.12 1991/08/22 15:17:51 arthur Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
(define (canonicalize-input-pathname filename)
(let ((pathname (->pathname filename)))
(let ((truename (pathname->input-truename pathname)))
- (if (not truename) (error:open-file pathname))
- truename)))
+ (or truename
+ (canonicalize-input-pathname (error:open-file pathname))))))
(define (pathname->input-truename pathname)
(let ((pathname (pathname->absolute-pathname pathname))
(define library-directory-path)
(define (system-library-pathname pathname)
- (let loop ((directories library-directory-path))
- (if (null? directories)
- (error:open-file pathname))
- (or (pathname->input-truename (merge-pathnames pathname (car directories)))
- (loop (cdr directories)))))
+ (if (and (pathname-absolute? pathname)
+ (pathname->input-truename pathname))
+ pathname
+ (let loop ((directories library-directory-path))
+ (if (null? directories)
+ (system-library-pathname (->pathname (error:open-file pathname)))
+ (or (pathname->input-truename
+ (merge-pathnames pathname (car directories)))
+ (loop (cdr directories)))))))
(define (system-library-directory-pathname pathname)
(if (not pathname)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.133 1991/08/16 15:42:30 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.134 1991/08/22 15:19:05 arthur Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
'()))
(add-system! microcode-system)
(add-event-receiver! event:after-restore snarf-microcode-version!)
- (add-identification! "Runtime" 14 133))
+ (add-identification! "Runtime" 14 134))
(define microcode-system)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.23 1991/08/20 22:01:33 arthur Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.24 1991/08/22 15:18:02 arthur Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
(pathname->input-truename pathname)
(load/default-find-pathname-with-type pathname
default-types)))))
- (if (not truename)
- (error:open-file pathname))
- truename)))
+ (or truename
+ (find-true-pathname (->pathname (error:open-file pathname))
+ default-types)))))
(define (search-types-in-order pathname default-types)
(let loop ((types default-types))