1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

define* in repl-reader

* module/ice-9/boot-9.scm (repl-reader): Use define*.
This commit is contained in:
Andy Wingo 2010-05-21 23:43:35 +02:00
parent d9113d47c6
commit 17ee350cb2

View file

@ -3057,15 +3057,12 @@ module '(ice-9 q) '(make-q q-length))}."
;;; The default repl-reader function. We may override this if we've
;;; the readline library.
(define repl-reader
(lambda (prompt . reader)
(lambda* (prompt #:optional (reader (fluid-ref current-reader)))
(if (not (char-ready?))
(display (if (string? prompt) prompt (prompt))))
(force-output)
(run-hook before-read-hook)
((or (and (pair? reader) (car reader))
(fluid-ref current-reader)
read)
(current-input-port))))
((or reader read) (current-input-port))))
(define (scm-style-repl)