Skip to content

Commit

Permalink
use include instead of load for batch mode scripts
Browse files Browse the repository at this point in the history
in parallel, the idiom would now be
    julia -p N -L defs.jl start.jl

small formatting fix
  • Loading branch information
JeffBezanson committed Nov 16, 2012
1 parent c1ab583 commit 36d75f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function process_options(args::Array{Any,1})
repl = false
# remove julia's arguments
ARGS = args[i+1:end]
load(args[i])
include(args[i])
break
else
error("unknown option: ", args[i])
Expand Down
3 changes: 2 additions & 1 deletion src/dlload.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ uv_lib_t *jl_load_dynamic_library(char *modname)
return handle;
}

void *jl_dlsym_e(uv_lib_t *handle, char *symbol) {
void *jl_dlsym_e(uv_lib_t *handle, char *symbol)
{
void *ptr;
int error=uv_dlsym(handle, symbol, &ptr);
if(error) ptr=NULL;
Expand Down

0 comments on commit 36d75f4

Please sign in to comment.