From 1b0e5bf67e1618d7e5258d7305fb72547e28beca Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 31 Dec 1988 06:05:10 +0000 Subject: [PATCH] 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. --- v7/src/runtime/make.scm | 17 +++++++++-------- v8/src/runtime/make.scm | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) 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! -- 2.25.1