original commit: 1d5fe689e3ade50052193439163382bbc4135aa0
This commit is contained in:
Matthew Flatt 2002-04-21 15:49:52 +00:00
parent 2f956ee531
commit b6429f88a7

View File

@ -65,13 +65,14 @@
; null-input : iport
(define null-input
(make-input-port (lambda () eof)
(lambda () #t)
void))
(make-custom-input-port #f
(lambda (s) eof)
#f
void))
; null-output : oport
(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