1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +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 current-warning-port current-error-port)
(define (warn . stuff) (define (warn . stuff)
(with-output-to-port (current-warning-port) (newline (current-warning-port))
(lambda () (display ";;; WARNING " (current-warning-port))
(newline) (display stuff (current-warning-port))
(display ";;; WARNING ") (newline (current-warning-port))
(display stuff) (car (last-pair stuff)))
(newline)
(car (last-pair stuff)))))