From 36a53082e5b528523da611c64766bac8151a75b4 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 6 Aug 2018 17:01:46 +0100 Subject: [PATCH] --- yaml --- r: 658149 b: refs/heads/rf/MT-show c: 7d651aa299ad72e0f6df23aa4214b508930ce3c5 h: refs/heads/master i: 658147: cd545e4db0d9e582d67b143961a276c65803dec6 --- [refs] | 2 +- branches/rf/MT-show/base/coreio.jl | 30 +++++++++++++------------- branches/rf/MT-show/base/deprecated.jl | 3 --- branches/rf/MT-show/base/process.jl | 2 +- branches/rf/MT-show/base/stream.jl | 2 +- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/[refs] b/[refs] index 14be36658ce90..7840e2b883907 100644 --- a/[refs] +++ b/[refs] @@ -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 diff --git a/branches/rf/MT-show/base/coreio.jl b/branches/rf/MT-show/base/coreio.jl index e901cdec10e39..da955e838a015 100644 --- a/branches/rf/MT-show/base/coreio.jl +++ b/branches/rf/MT-show/base/coreio.jl @@ -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 diff --git a/branches/rf/MT-show/base/deprecated.jl b/branches/rf/MT-show/base/deprecated.jl index b06afc82c200b..ed4a780924070 100644 --- a/branches/rf/MT-show/base/deprecated.jl +++ b/branches/rf/MT-show/base/deprecated.jl @@ -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), diff --git a/branches/rf/MT-show/base/process.jl b/branches/rf/MT-show/base/process.jl index df5c321daab7e..0216c70a1616c 100644 --- a/branches/rf/MT-show/base/process.jl +++ b/branches/rf/MT-show/base/process.jl @@ -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) diff --git a/branches/rf/MT-show/base/stream.jl b/branches/rf/MT-show/base/stream.jl index 73ca43432ebb7..df79e77e200c5 100644 --- a/branches/rf/MT-show/base/stream.jl +++ b/branches/rf/MT-show/base/stream.jl @@ -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)