1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

apply goes to the vm, not the interpreter

* libguile/eval.c (eval): Call scm_vm_apply instead of apply.
  (apply): Deleted, no longer referenced. Heh.
  (scm_apply): Call scm_vm_apply.

* libguile/init.c (scm_i_init_guile): Bootstrap the VM before the
  evaluator.

* libguile/vm.c (scm_vm_apply): Actually it's not necessary that the
  procedure is a program; so that's cool, relax the check.
This commit is contained in:
Andy Wingo 2009-12-01 22:20:03 +01:00
parent cc8d1f5fcd
commit 67e2d80a6a
3 changed files with 6 additions and 156 deletions

View file

@ -551,6 +551,7 @@ scm_i_init_guile (SCM_STACKITEM *base)
scm_init_weaks ();
scm_init_guardians ();
scm_init_vports ();
scm_bootstrap_vm ();
scm_init_memoize ();
scm_init_eval ();
scm_init_evalext ();
@ -588,8 +589,6 @@ scm_i_init_guile (SCM_STACKITEM *base)
scm_init_rw ();
scm_init_extensions ();
scm_bootstrap_vm ();
atexit (cleanup_for_exit);
scm_load_startup_files ();
}