-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse all command line options in repl.c
- consolidate all compiler / cmdline options into jl_options_t struct in julia.h - add options.jl to base/ with an immutable type JLOptions that reflects the jl_options_t struct - add --procs=<n> command line flag (equivalent to -p <n>) - add --history-file={yes|no} and --startup-file={yes|no} cmdline opts - deprecate -f, -F, --no-startup, --no-history-file cmdline flags - add tests for cmdline arguments in test/cmdlineargs.jl - modify test/Makefile and tests to use long command line option, add command line argument tests to runtests.jl - update relevant docs in the manual and manpages
- Loading branch information
1 parent
060aaec
commit 8301aa6
Showing
24 changed files
with
763 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Julia options struct (see jl_options_t in src/julia.h) | ||
|
||
immutable JLOptions | ||
version::Int8 | ||
quiet::Int8 | ||
julia_home::Ptr{Cchar} | ||
julia_bin::Ptr{Cchar} | ||
build_path::Ptr{Cchar} | ||
eval::Ptr{Cchar} | ||
print::Ptr{Cchar} | ||
postboot::Ptr{Cchar} | ||
load::Ptr{Cchar} | ||
image_file::Ptr{Cchar} | ||
cpu_target::Ptr{Cchar} | ||
nprocs::Clong | ||
machinefile::Ptr{Cchar} | ||
isinteractive::Int8 | ||
color::Int8 | ||
historyfile::Int8 | ||
startupfile::Int8 | ||
compile_enabled::Int8 | ||
code_coverage::Int8 | ||
malloc_log::Int8 | ||
opt_level::Int8 | ||
check_bounds::Int8 | ||
int_literals::Cint | ||
dumpbitcode::Int8 | ||
depwarn::Int8 | ||
can_inline::Int8 | ||
worker::Int8 | ||
bindto::Ptr{Cchar} | ||
end | ||
|
||
JLOptions() = unsafe_load(cglobal(:jl_options, JLOptions)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.