mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +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);
|
ctx = sexp_load_image(arg, 0, heap_size, heap_max_size);
|
||||||
if (!ctx || !sexp_contextp(ctx)) {
|
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());
|
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;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
if (! init_loaded++) {
|
if (! init_loaded++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue