mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Merge branch 'master' of github.com:ashinn/chibi-scheme
This commit is contained in:
commit
90ed977202
2 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@
|
|||
|
||||
(define (parse->list f source . o)
|
||||
(let ((index (if (pair? o) (car o) 0)))
|
||||
(reverse (parse-fold cons '() f source index))))
|
||||
(reverse (parse-fold f cons '() source index))))
|
||||
|
||||
;;> As \scheme{parse->list} but requires the entire source be parsed
|
||||
;;> with no left over characters, signalling an error otherwise.
|
||||
|
|
2
main.c
2
main.c
|
@ -614,7 +614,7 @@ sexp run_main (int argc, char **argv) {
|
|||
sym = sexp_intern(ctx, main_symbol, -1);
|
||||
tmp = sexp_env_ref(ctx, env, sym, SEXP_FALSE);
|
||||
if (sexp_procedurep(tmp)) {
|
||||
args = sexp_list1(ctx, sexp_cdr(args));
|
||||
args = sexp_list1(ctx, args);
|
||||
check_exception(ctx, sexp_apply(ctx, tmp, args));
|
||||
} else {
|
||||
fprintf(stderr, "couldn't find main binding: %s in %s\n", main_symbol, main_module ? main_module : argv[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue