(define-deferred host-library-db
(make-library-db 'host))
+(define-deferred current-library-db
+ (make-settable-parameter host-library-db
+ (lambda (value)
+ (guarantee library-db? value))))
+
(define (finish-host-library-db!)
(add-standard-libraries! host-library-db))
value))
#f))
-(define-deferred current-load-library-db
- (make-unsettable-parameter host-library-db))
-
(define-deferred param:eval-unit
(make-unsettable-parameter #f
(lambda (value)
(let ((scode (loader)))
(if purify? (purify (load/purification-root scode)))
(if (r7rs-scode-file? scode)
- (eval-r7rs-scode-file scode pathname (current-load-library-db))
+ (eval-r7rs-scode-file scode pathname (current-library-db))
(extended-scode-eval scode environment)))))
(define (source-loader pathname)
(declare (ignore purify?))
(let ((source (read-r7rs-source pathname)))
(if source
- (eval-r7rs-source source (current-load-library-db))
+ (eval-r7rs-source source (current-library-db))
(call-with-input-file pathname
(lambda (port)
(let loop ((value unspecific))
built-in-object-file
condition-type:not-loading
current-load-environment
- current-load-library-db
current-load-pathname
fasl-file?
fasload
system-uri
with-loader-base-uri)
(export (runtime)
- ;; current-library-db
- ;; host-library-db
load/purification-root))
(define-package (runtime command-line)
(files "library-standard")
(parent (runtime library))
(export (runtime)
+ current-library-db
host-library-db
standard-library-globals)
(export (runtime library)
sf:enable-argument-deletion?
sf:enable-constant-folding?)
(import (runtime)
- current-load-library-db
+ current-library-db
library-import-to
map-r7rs-scode-file
map-scode-library
(in-phase "Syntax"
(lambda ()
(if (r7rs-source? s-expressions)
- (syntax-r7rs-source s-expressions (current-load-library-db))
+ (syntax-r7rs-source s-expressions (current-library-db))
(syntax* (if (null? declarations)
s-expressions
(cons (cons (close-syntax 'declare