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 --- kawa.init | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'kawa.init') diff --git a/kawa.init b/kawa.init index 4a261c0..373a17b 100644 --- a/kawa.init +++ b/kawa.init @@ -24,11 +24,14 @@ ;;@ (implementation-vicinity) should be defined to be the pathname of ;;; the directory where any auxillary files to your Scheme ;;; implementation reside. -(define (implementation-vicinity) - (case (software-type) - ((unix) "/usr/local/src/kawa/") - ;;((vms) "scheme$src:") - ((ms-dos) "C:\\kawa\\"))) +(define implementation-vicinity + (let ((impl-path + (case (software-type) + ((unix) "/usr/local/src/kawa/") + ;;((vms) "scheme$src:") + ((ms-dos) "C:\\kawa\\") + (else "")))) + (lambda () impl-path))) ;;@ (library-vicinity) should be defined to be the pathname of the ;;; directory where files of Scheme library functions reside. @@ -98,8 +101,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))))) @@ -140,6 +142,7 @@ ;(SLIB:LOAD-COMPILED "filename") vicinity srfi-59 + srfi-96 ;; Scheme report features ;; R5RS-compliant implementations should provide all 9 features. @@ -181,7 +184,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. @@ -302,7 +305,6 @@ ;@ (define (defmacro:load ) (slib:eval-load defmacro:eval)) -;; slib:eval-load definition moved to "require.scm" ;@ (define slib:warn (lambda args -- cgit v1.2.3