Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 658149
b: refs/heads/rf/MT-show
c: 7d651aa
h: refs/heads/master
i:
  658147: cd545e4
  • Loading branch information
fredrikekre authored and JeffBezanson committed Aug 6, 2018
1 parent b395a99 commit 36a5308
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ refs/heads/mb/NEWSupdate: 81d1ffa1b450bf64523156de71c9c08719ca0a23
refs/heads/nl/firstlast: 2c29e08ecd72d805e9b5bcb74bcfe529e5f21572
refs/heads/nl/iterable: f4cd0c487bb0b1e21055cea9e17caa12a272eaeb
refs/heads/nl/search.new: 25ed9b90b222e82e563e6fd13e4133dd3aa226f4
refs/heads/rf/MT-show: 4fce960517c5927402d74bc0c0c79c10520d53e2
refs/heads/rf/MT-show: 7d651aa299ad72e0f6df23aa4214b508930ce3c5
refs/heads/rf/deepcopy: d23c8bb386a570ad19b93fb9df3f9362eae5aea0
refs/heads/rf/rand/fromtuples: c15a86c06d0692fdd11c5df0ac93f7247f9ddd16
refs/heads/rf/rand/range-bool: 3dcc4794bb25ea629e81d05e0d68fc4c07505f76
Expand Down
30 changes: 15 additions & 15 deletions branches/rf/MT-show/base/coreio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ print(xs...) = print(stdout::IO, xs...)
println(xs...) = println(stdout::IO, xs...)
println(io::IO) = print(io, '\n')

struct DevNullStream <: IO end
const devnull = DevNullStream()
isreadable(::DevNullStream) = false
iswritable(::DevNullStream) = true
isopen(::DevNullStream) = true
read(::DevNullStream, ::Type{UInt8}) = throw(EOFError())
write(::DevNullStream, ::UInt8) = 1
unsafe_write(::DevNullStream, ::Ptr{UInt8}, n::UInt)::Int = n
close(::DevNullStream) = nothing
flush(::DevNullStream) = nothing
wait_connected(::DevNullStream) = nothing
wait_readnb(::DevNullStream) = wait()
wait_readbyte(::DevNullStream) = wait()
wait_close(::DevNullStream) = wait()
eof(::DevNullStream) = true
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
Expand Down
3 changes: 0 additions & 3 deletions branches/rf/MT-show/base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1327,9 +1327,6 @@ function (r::Regex)(s)
occursin(r, s)
end

# Issue #25786
@deprecate_binding DevNull devnull

# PR 25062
@deprecate(link_pipe(pipe; julia_only_read = true, julia_only_write = true),
link_pipe!(pipe, reader_supports_async = julia_only_read, writer_supports_async = julia_only_write),
Expand Down
2 changes: 1 addition & 1 deletion branches/rf/MT-show/base/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct FileRedirect
end
end

rawhandle(::DevNullStream) = C_NULL
rawhandle(::DevNull) = C_NULL
rawhandle(x::OS_HANDLE) = x
if OS_HANDLE !== RawFD
rawhandle(x::RawFD) = Libc._get_osfhandle(x)
Expand Down
2 changes: 1 addition & 1 deletion branches/rf/MT-show/base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract type LibuvStream <: IO end
# . +- Process (not exported)
# . +- ProcessChain (not exported)
# +- BufferStream
# +- DevNullStream (not exported)
# +- DevNull (not exported)
# +- Filesystem.File
# +- LibuvStream (not exported)
# . +- PipeEndpoint (not exported)
Expand Down

0 comments on commit 36a5308

Please sign in to comment.