.
original commit: 1d5fe689e3ade50052193439163382bbc4135aa0
This commit is contained in:
parent
2f956ee531
commit
b6429f88a7
|
@ -65,13 +65,14 @@
|
||||||
|
|
||||||
; null-input : iport
|
; null-input : iport
|
||||||
(define null-input
|
(define null-input
|
||||||
(make-input-port (lambda () eof)
|
(make-custom-input-port #f
|
||||||
(lambda () #t)
|
(lambda (s) eof)
|
||||||
void))
|
#f
|
||||||
|
void))
|
||||||
|
|
||||||
; null-output : oport
|
; null-output : oport
|
||||||
(define null-output
|
(define null-output
|
||||||
(make-output-port void void))
|
(make-custom-output-port #f (lambda (s start end flush?) (- end start)) void void))
|
||||||
|
|
||||||
(define dev-null "/dev/null") ; unix specific, so slashes are okay
|
(define dev-null "/dev/null") ; unix specific, so slashes are okay
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user