-
Notifications
You must be signed in to change notification settings - Fork 31
/
Chez-postlude.scm
20 lines (20 loc) · 900 Bytes
/
Chez-postlude.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(import
(only (chezscheme)
machine-type
scheme-version-number))
(define (this-scheme-implementation-name)
(let* ((machine-type-name (symbol->string (machine-type)))
(threads (if (char=? (string-ref machine-type-name 0) #\t)
"m"
"s"))
(bits (if (char=? (string-ref machine-type-name (if (string=? threads "m") 2 1)) #\6)
"64"
"32")))
(string-append "chez-" (call-with-values scheme-version-number
(lambda (a b c)
(string-append (number->string a)
"."
(number->string b)
"."
(number->string c))))
"-" threads bits)))