1
1
# formerly built-in methods. can be replaced any time.
3
show(x) = show(OUTPUT_STREAM::Stream, x)
3
show(x) = show(OUTPUT_STREAM::IO, x)
5
5
print(io::IO, s::Symbol) = ccall(:jl_print_symbol, Void, (Ptr{Void}, Any,), io, s)
6
show(io::IO, x::ANY) = ccall(:jl_show_any, Void, (Any, Any,), io::Stream, x)
6
show(io::IO, x::ANY) = ccall(:jl_show_any, Void, (Any, Any,), io::IO, x)
8
8
showcompact(io::IO, x) = show(io, x)
9
showcompact(x) = showcompact(OUTPUT_STREAM::Stream, x)
9
showcompact(x) = showcompact(OUTPUT_STREAM::IO, x)
534
534
# For abstract types, use _dumptype only if it's a form that will be called
536
xdump(fn::Function, io::Stream, x::AbstractKind) = dumptype(io, x, 5, "")
537
xdump(fn::Function, io::Stream, x::AbstractKind, n::Int) = dumptype(io, x, n, "")
536
xdump(fn::Function, io::IO, x::AbstractKind) = dumptype(io, x, 5, "")
537
xdump(fn::Function, io::IO, x::AbstractKind, n::Int) = dumptype(io, x, n, "")
540
xdump(fn::Function, io::Stream, x) = xdump(xdump, io, x, 5, "") # default is 5 levels
541
xdump(fn::Function, io::Stream, x, n::Int) = xdump(xdump, io, x, n, "")
542
xdump(fn::Function, args...) = xdump(fn, OUTPUT_STREAM::Stream, args...)
543
xdump(io::Stream, args...) = xdump(xdump, io, args...)
544
xdump(args...) = xdump(xdump, OUTPUT_STREAM::Stream, args...)
540
xdump(fn::Function, io::IO, x) = xdump(xdump, io, x, 5, "") # default is 5 levels
541
xdump(fn::Function, io::IO, x, n::Int) = xdump(xdump, io, x, n, "")
542
xdump(fn::Function, args...) = xdump(fn, OUTPUT_STREAM::IO, args...)
543
xdump(io::IO, args...) = xdump(xdump, io, args...)
544
xdump(args...) = xdump(xdump, OUTPUT_STREAM::IO, args...)
547
547
# Here are methods specifically for dump:
548
548
dump(io::IO, x, n::Int) = dump(io, x, n, "")
549
549
dump(io::IO, x) = dump(io, x, 5, "") # default is 5 levels
550
dump(args...) = dump(OUTPUT_STREAM::Stream, args...)
550
dump(args...) = dump(OUTPUT_STREAM::IO, args...)
551
551
dump(io::IO, x::String, n::Int, indent) = println(io, typeof(x), " \"", x, "\"")
552
552
dump(io::IO, x, n::Int, indent) = xdump(dump, io, x, n, indent)
888
888
print_bit_chunk(io::IO, c::Uint64) = print_bit_chunk(io, c, 64)
890
print_bit_chunk(c::Uint64, l::Integer) = print_bit_chunk(STDOUT, c, l)
891
print_bit_chunk(c::Uint64) = print_bit_chunk(STDOUT, c)
890
print_bit_chunk(c::Uint64, l::Integer) = print_bit_chunk(OUTPUT_STREAM, c, l)
891
print_bit_chunk(c::Uint64) = print_bit_chunk(OUTPUT_STREAM, c)
893
893
function bitshow(io::IO, B::BitArray)
894
894
if length(B) == 0