runtime/host-adapter: Add string-foldcase. Train any 9.2 release.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sun, 23 Apr 2017 21:04:50 +0000 (14:04 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sun, 23 Apr 2017 21:04:50 +0000 (14:04 -0700)
src/runtime/host-adapter.scm

index 94e38aadcbb96cebcb725eb16d987cc9c28f57bc..f1d41f6eb8c49770f95fd8d9f11819b0c9f087d1 100644 (file)
@@ -36,7 +36,7 @@ USA.
 ;;; only until the new runtime is released.  They assume the host is
 ;;; the current release (9.2 as of March 2017).
 
-(if (string=? "9.2" (get-subsystem-version-string "release"))
+(if (string-prefix? "9.2" (get-subsystem-version-string "release"))
     (begin
       (eval
        '(begin
@@ -56,7 +56,9 @@ USA.
                (error "MICROCODE-TYPE: Unknown name" name)))
 
          (define (bytes-per-object)
-           (vector-ref (gc-space-status) 0)))
+           (vector-ref (gc-space-status) 0))
+
+         (define string-foldcase string-downcase))
        (->environment '()))
       ;; Make new CREF's .pkds usable.
       (eval