mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
-iimage should be non-fatal for a missing image
This commit is contained in:
parent
7a94a31e72
commit
ed0be227cc
1 changed files with 5 additions and 4 deletions
9
main.c
9
main.c
|
@ -433,12 +433,13 @@ sexp run_main (int argc, char **argv) {
|
|||
}
|
||||
ctx = sexp_load_image(arg, 0, heap_size, heap_max_size);
|
||||
if (!ctx || !sexp_contextp(ctx)) {
|
||||
fprintf(stderr, "-:i <file>: couldn't open file for reading: %s\n", arg);
|
||||
fprintf(stderr, "-:i <file>: couldn't open image file for reading: %s\n", arg);
|
||||
fprintf(stderr, " %s\n", sexp_load_image_err());
|
||||
exit_failure();
|
||||
ctx = NULL;
|
||||
} else {
|
||||
env = sexp_load_standard_params(ctx, sexp_context_env(ctx), nonblocking);
|
||||
init_loaded++;
|
||||
}
|
||||
env = sexp_load_standard_params(ctx, sexp_context_env(ctx), nonblocking);
|
||||
init_loaded++;
|
||||
break;
|
||||
case 'd':
|
||||
if (! init_loaded++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue