scm: Bugfix drain-input.

* module/mes/guile.mes (drain-input): Bugfix: return string.
This commit is contained in:
Jan Nieuwenhuizen 2017-03-27 21:00:49 +02:00
parent a53e878435
commit 945fb39d18

View file

@ -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)))