From 4684239efa63dc1b2c1cbe37ef7d3062029f5532 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:40 -0800 Subject: Import Upstream version 3b1 --- mitscheme.init | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'mitscheme.init') diff --git a/mitscheme.init b/mitscheme.init index 97d1efc..fdf1c95 100644 --- a/mitscheme.init +++ b/mitscheme.init @@ -46,8 +46,11 @@ ;;; (implementation-vicinity) should be defined to be the pathname of ;;; the directory where any auxillary files to your Scheme ;;; implementation reside. -(define (implementation-vicinity) - (->namestring (system-library-directory-pathname #f))) +(define implementation-vicinity + (let ((impl-path + (or (getenv "MITSCHEME_IMPLEMENTATION_PATH") + (->namestring (system-library-directory-pathname #f))))) + (lambda () impl-path))) ;;; (library-vicinity) should be defined to be the pathname of the ;;; directory where files of Scheme library functions reside. @@ -104,8 +107,7 @@ ;@ (define sub-vicinity (case (software-type) - ((vms) (lambda - (vic name) + ((vms) (lambda (vic name) (let ((l (string-length vic))) (if (or (zero? (string-length vic)) (not (char=? #\] (string-ref vic (- l 1))))) @@ -146,6 +148,7 @@ ;(SLIB:LOAD-COMPILED "filename") vicinity srfi-59 + srfi-96 ;; Scheme report features @@ -191,7 +194,7 @@ ;; Other common features -;;; srfi ;srfi-0, COND-EXPAND finds all srfi-* +;;; srfi-0 ;srfi-0, COND-EXPAND finds all srfi-* ;;; sicp ;runs code from Structure and ;Interpretation of Computer ;Programs by Abelson and Sussman. @@ -408,7 +411,6 @@ (begin (environment-define (the-environment) 'macro:eval slib:eval) (environment-define (the-environment) 'macro:load load))) -;; slib:eval-load definition moved to "require.scm" ;; Older implementations need this definition. (if (lexical-unreferenceable? (the-environment) 'record-modifier) -- cgit v1.2.3