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:
parent
f28dc43c95
commit
f7955da966
1 changed files with 5 additions and 7 deletions
|
@ -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)))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue