Rename current-load-library-db to current-library-db.
authorChris Hanson <org/chris-hanson/cph>
Wed, 24 Oct 2018 00:57:32 +0000 (17:57 -0700)
committerChris Hanson <org/chris-hanson/cph>
Wed, 24 Oct 2018 00:57:32 +0000 (17:57 -0700)
src/runtime/library-standard.scm
src/runtime/load.scm
src/runtime/runtime.pkg
src/sf/sf.pkg
src/sf/toplev.scm

index 74e5a3f031a76182c18a40a268708dcd894b89ac..5f0c107b4c0a67c259e128592a4a135724ede7c1 100644 (file)
@@ -32,6 +32,11 @@ USA.
 (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))
 
index a7f43e83e4a93f2a8ae5a9836b3243e5f18ca621..280954cde8463e370f6d82fd34b23f16a943cd90 100644 (file)
@@ -52,9 +52,6 @@ USA.
                                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)
@@ -143,7 +140,7 @@ USA.
     (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)
@@ -151,7 +148,7 @@ USA.
     (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))
index 8aefe759a67d3af6cad89bea9e56b12b32a5926c..b13e34014456c7e5a2650a88714081e4c3f36e02 100644 (file)
@@ -3163,7 +3163,6 @@ USA.
          built-in-object-file
          condition-type:not-loading
          current-load-environment
-         current-load-library-db
          current-load-pathname
          fasl-file?
          fasload
@@ -3178,8 +3177,6 @@ USA.
          system-uri
          with-loader-base-uri)
   (export (runtime)
-         ;; current-library-db
-         ;; host-library-db
          load/purification-root))
 
 (define-package (runtime command-line)
@@ -5917,6 +5914,7 @@ USA.
   (files "library-standard")
   (parent (runtime library))
   (export (runtime)
+         current-library-db
          host-library-db
          standard-library-globals)
   (export (runtime library)
index 49824ff1a6d63bf994bafdf47b26ec3f010ef97b..304b20beff8af95b7974764a58582829bce0466d 100644 (file)
@@ -40,7 +40,7 @@ USA.
           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
index e8b84f0fd58e8c366419381a53ca7360f8ea1f8c..e01d93584bcbe2d87cbc42f2eb1cc1c75eff90a4 100644 (file)
@@ -267,7 +267,7 @@ USA.
   (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