Revision cf55683b764816b6ec4c6e5f0414ac26fb30af79 authored by Rafael Fourquet on 09 June 2017, 07:36:25 UTC, committed by Rafael Fourquet on 21 June 2017, 11:36:04 UTC
1 parent a52a78d
options.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
# NOTE: This type needs to be kept in sync with jl_options in src/julia.h
struct JLOptions
quiet::Int8
julia_home::Ptr{UInt8}
julia_bin::Ptr{UInt8}
eval::Ptr{UInt8}
print::Ptr{UInt8}
load::Ptr{UInt8}
image_file::Ptr{UInt8}
cpu_target::Ptr{UInt8}
nprocs::Int32
machinefile::Ptr{UInt8}
isinteractive::Int8
color::Int8
historyfile::Int8
startupfile::Int8
compile_enabled::Int8
code_coverage::Int8
malloc_log::Int8
opt_level::Int8
debug_level::Int8
check_bounds::Int8
depwarn::Int8
can_inline::Int8
polly::Int8
fast_math::Int8
worker::Ptr{UInt8}
handle_signals::Int8
use_precompiled::Int8
use_compilecache::Int8
bindto::Ptr{UInt8}
outputbc::Ptr{UInt8}
outputo::Ptr{UInt8}
outputji::Ptr{UInt8}
incremental::Int8
end
JLOptions() = unsafe_load(cglobal(:jl_options, JLOptions))
function show(io::IO, opt::JLOptions)
print(io, "JLOptions(")
fields = fieldnames(opt)
nfields = length(fields)
for (i, f) in enumerate(fields)
v = getfield(opt, i)
if isa(v, Ptr{UInt8})
v = (v != C_NULL) ? unsafe_string(v) : ""
end
print(io, f, " = ", repr(v), i < nfields ? ", " : "")
end
print(io, ")")
end
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...