scm: Bugfix drain-input.
* module/mes/guile.mes (drain-input): Bugfix: return string.
This commit is contained in:
parent
a53e878435
commit
945fb39d18
|
@ -26,9 +26,10 @@
|
|||
(define-macro (use-modules . rest) #t)
|
||||
|
||||
(define (drain-input port)
|
||||
(let loop ((c (read-char)))
|
||||
(if (eq? c #\*eof*) '()
|
||||
(cons c (loop (read-char))))))
|
||||
(list->string
|
||||
(let loop ((c (read-char)))
|
||||
(if (eq? c #\*eof*) '()
|
||||
(cons c (loop (read-char)))))))
|
||||
|
||||
(define (make-string n . fill)
|
||||
(list->string (apply make-list n fill)))
|
||||
|
|
Loading…
Reference in a new issue