]> gitweb.factorcode.org Git - factor.git/blob - core/io/null-stream.factor
8410485c259f29ac0ab02e502f4387971bee43b4
[factor.git] / core / io / null-stream.factor
1 IN: io
2 USING: kernel ;
3
4 ! Think '/dev/null'.
5 M: f stream-close drop ;
6 M: f set-timeout 2drop ;
7
8 M: f stream-readln drop f ;
9 M: f stream-read1 drop f ;
10 M: f stream-read 2drop f ;
11
12 M: f stream-write1 2drop ;
13 M: f stream-write 2drop ;
14 M: f stream-terpri drop ;
15 M: f stream-flush drop ;
16
17 M: f stream-format 3drop ;
18 M: f with-nested-stream rot drop with-stream* ;