From: Chris Hanson Date: Sat, 31 Dec 1988 06:05:10 +0000 (+0000) Subject: Add mechanism to allow normalization of directory prefixes. Add X-Git-Tag: 20090517-FFI~12307 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=1b0e5bf67e1618d7e5258d7305fb72547e28beca;p=mit-scheme.git Add mechanism to allow normalization of directory prefixes. Add "site" file mechanism to cold load to allow this to be performed in a site-specific manner. --- diff --git a/v7/src/runtime/make.scm b/v7/src/runtime/make.scm index 856316978..d73e06f77 100644 --- a/v7/src/runtime/make.scm +++ b/v7/src/runtime/make.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/make.scm,v 14.7 1988/12/31 05:52:59 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/make.scm,v 14.8 1988/12/31 06:05:10 cph Exp $ Copyright (c) 1988 Massachusetts Institute of Technology @@ -376,13 +376,14 @@ MIT in each case. |# (RUNTIME EMACS-INTERFACE) )) -(let ((pathname (->pathname "site"))) - (let ((type - (list-search-positive load/default-types - (lambda (type) - (file-exists? (pathname-new-type type)))))) - (if type - (load (pathname-new-type pathname type) '())))) +(let ((pathname + (let ((pathname (->pathname "site"))) + (list-search-positive + (map (lambda (type) (pathname-new-type pathname type)) + load/default-types) + file-exists?)))) + (if pathname + (load pathname '()))) (let ((fasload/update-debugging-info! (access fasload/update-debugging-info! diff --git a/v8/src/runtime/make.scm b/v8/src/runtime/make.scm index e194ee80e..23b08fd6c 100644 --- a/v8/src/runtime/make.scm +++ b/v8/src/runtime/make.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/make.scm,v 14.7 1988/12/31 05:52:59 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/make.scm,v 14.8 1988/12/31 06:05:10 cph Exp $ Copyright (c) 1988 Massachusetts Institute of Technology @@ -376,13 +376,14 @@ MIT in each case. |# (RUNTIME EMACS-INTERFACE) )) -(let ((pathname (->pathname "site"))) - (let ((type - (list-search-positive load/default-types - (lambda (type) - (file-exists? (pathname-new-type type)))))) - (if type - (load (pathname-new-type pathname type) '())))) +(let ((pathname + (let ((pathname (->pathname "site"))) + (list-search-positive + (map (lambda (type) (pathname-new-type pathname type)) + load/default-types) + file-exists?)))) + (if pathname + (load pathname '()))) (let ((fasload/update-debugging-info! (access fasload/update-debugging-info!