Added channel->port.
This commit is contained in:
parent
3ab6cf122c
commit
abf7c53cc5
|
@ -608,6 +608,10 @@
|
||||||
(define-r4rs-output (force-output) output s48-force-output
|
(define-r4rs-output (force-output) output s48-force-output
|
||||||
(values)) ; Do nothing if applied to a file descriptor.
|
(values)) ; Do nothing if applied to a file descriptor.
|
||||||
|
|
||||||
|
;;; extend channel-i/o's version to fdports
|
||||||
|
;;; WARNING: evil procedure, bypasses port-lock
|
||||||
|
(define (port->channel port)
|
||||||
|
(fdport-data:channel (fdport-data port)))
|
||||||
|
|
||||||
(define (format dest cstring . args)
|
(define (format dest cstring . args)
|
||||||
(if (integer? dest)
|
(if (integer? dest)
|
||||||
|
|
|
@ -126,7 +126,8 @@
|
||||||
set-fdes-status
|
set-fdes-status
|
||||||
|
|
||||||
init-fdports! ;added by JMG
|
init-fdports! ;added by JMG
|
||||||
|
port->channel ;overwrites channel-i/o
|
||||||
|
|
||||||
force-output
|
force-output
|
||||||
set-port-buffering
|
set-port-buffering
|
||||||
bufpol/block
|
bufpol/block
|
||||||
|
|
Loading…
Reference in New Issue