mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
snow: accept "_" as version separator
$ tools/snow-chibi implementations WARNING: Implementation gauche is an unsupported version, 0.9.10_pre1, but at least 0.9.4 is required. cyclone sagittarius The easy solution is also accept "_" as version separator and consider "pre1" the forth component. This makes the warning go away, and I don't think it'll affect version comparison on other schemes.
This commit is contained in:
parent
e307c872bf
commit
0eb0834bbc
2 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,7 @@
|
|||
(define (version-split str)
|
||||
(if str
|
||||
(map (lambda (x) (or (string->number x) x))
|
||||
(string-split str #\.))
|
||||
(string-split str (string->char-set "._")))
|
||||
'()))
|
||||
|
||||
(define (version-compare a b)
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
(scheme write)
|
||||
(scheme process-context)
|
||||
(srfi 1)
|
||||
(chibi char-set)
|
||||
(chibi net http)
|
||||
(chibi pathname)
|
||||
(chibi string)
|
||||
|
|
Loading…
Add table
Reference in a new issue