Remove @prompt memoizer
authorAndy Wingo <wingo@pobox.com>
Tue, 25 Jun 2013 20:36:08 +0000 (22:36 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 27 Jun 2013 09:31:21 +0000 (11:31 +0200)
commit1773bc7dd5f4c8a1d13c7cf2015f3a04c9299eeb
tree3a645fa1af56c5572d7d0933792930592e84ab6f
parent385049949aa52b8578334d073b2c63291a5d5274
Remove @prompt memoizer

* libguile/memoize.h:
* libguile/memoize.c (MAKMEMO_CALL_WITH_PROMPT, memoize, unmemoize):
  Remove the @prompt memoizer in favor of recognizing call-with-prompt
  primcalls.  Rename SCM_M_PROMPT to SCM_M_CALL_WITH_PROMPT, and pass a
  thunk instead of an expression so that it has normal applicative
  order.

* libguile/expand.c (PRIMITIVE_REF, PRIMCALL, expand): Produce primcalls
  from forms whose car is a primitive.
  (expand_atat): Recognize (@@ primitive FOO) as being a primitive-ref.

* module/ice-9/boot-9.scm (call-with-prompt): Instead of dispatching to
  the wonky @prompt memoizer, residualize a primcall to
  call-with-prompt.  The memoizer will DTRT to allow call-with-prompt to
  be interpreted correctly without needing an additional binding.

* module/ice-9/eval.scm (primitive-eval): Change the 'prompt clause to a
  call to call-with-prompt.

* module/language/tree-il/primitives.scm: No more need to recognize
  @prompt.

* libguile/eval.c (eval): Adapt to SCM_M_PROMPT renaming to
  SCM_M_CALL_WITH_PROMPT, and apply the thunk.

* libguile/throw.c (pre_init_throw): Adapt to scm_abort_to_prompt_star
  rename.
libguile/eval.c
libguile/expand.c
libguile/memoize.c
libguile/memoize.h
libguile/throw.c
module/ice-9/boot-9.scm
module/ice-9/eval.scm
module/language/tree-il/primitives.scm