1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

bootstrapping shenanigans in `warn'

* module/ice-9/boot-9.scm (warn): Don't use with-output-to-port, as
  we'll move that definition after the psyntax boot.
This commit is contained in:
Andy Wingo 2012-03-06 00:34:59 +01:00
parent f28dc43c95
commit f7955da966

View file

@ -435,13 +435,11 @@ procedures, their behavior is implementation dependent."
(define current-warning-port current-error-port)
(define (warn . stuff)
(with-output-to-port (current-warning-port)
(lambda ()
(newline)
(display ";;; WARNING ")
(display stuff)
(newline)
(car (last-pair stuff)))))
(newline (current-warning-port))
(display ";;; WARNING " (current-warning-port))
(display stuff (current-warning-port))
(newline (current-warning-port))
(car (last-pair stuff)))