Revision 592a4745012a3d1b920fb1c95093bc5c7453323d authored by Mark on 12 September 2018, 14:43:51 UTC, committed by Kristoffer Carlsson on 12 September 2018, 14:43:51 UTC
I don't have time to do this whole document, but it could do with an edit by a native English speaker.
1 parent 6acaa10
coreio.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
print(xs...) = print(stdout::IO, xs...)
println(xs...) = println(stdout::IO, xs...)
println(io::IO) = print(io, '\n')
struct DevNull <: IO end
const devnull = DevNull()
isreadable(::DevNull) = false
iswritable(::DevNull) = true
isopen(::DevNull) = true
read(::DevNull, ::Type{UInt8}) = throw(EOFError())
write(::DevNull, ::UInt8) = 1
unsafe_write(::DevNull, ::Ptr{UInt8}, n::UInt)::Int = n
close(::DevNull) = nothing
flush(::DevNull) = nothing
wait_connected(::DevNull) = nothing
wait_readnb(::DevNull) = wait()
wait_readbyte(::DevNull) = wait()
wait_close(::DevNull) = wait()
eof(::DevNull) = true
let CoreIO = Union{Core.CoreSTDOUT, Core.CoreSTDERR}
global write, unsafe_write
write(io::CoreIO, x::UInt8) = Core.write(io, x)
unsafe_write(io::CoreIO, x::Ptr{UInt8}, nb::UInt) = Core.unsafe_write(io, x, nb)
end
stdin = devnull
stdout = Core.stdout
stderr = Core.stderr
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...