fix a prompt bug
authorAndy Wingo <wingo@pobox.com>
Thu, 25 Feb 2010 16:33:12 +0000 (17:33 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 26 Feb 2010 10:05:44 +0000 (11:05 +0100)
commitd296431516dbf14535fc6eaba551fede19c09772
tree462156635e207a35b0f03d7bb044833278467c72
parentb8af64db76bc602517be300128be0dfb67fac89f
fix a prompt bug

* libguile/control.h:
* libguile/control.c (scm_c_make_prompt): Instead of taking a VM arg,
  take the registers directly.
  (scm_c_abort): Declare as returning void. In fact it will never
  return.

* libguile/eval.c (eval):
* libguile/throw.c (pre_init_catch): Adapt to prompt API change.

* libguile/vm-i-system.c (prompt): Pass the abort ip as the ip to
  scm_c_make_prompt. This fixes a bug in which we used the "offset"
  local var, but it wasn't guaranteed to be around after a longjmp.
libguile/control.c
libguile/control.h
libguile/eval.c
libguile/vm-i-system.c