add memoized expression accessors to scheme
authorAndy Wingo <wingo@pobox.com>
Mon, 30 Nov 2009 21:21:31 +0000 (22:21 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 1 Dec 2009 20:00:27 +0000 (21:00 +0100)
commit3149a5b60de3dc55c7349aba5bfb3ff28c594aef
tree8e3877d54f282ecf716843df479a70e4fb7b8ee1
parentc7a2a803bd0c3ca8860929d4700a46e104cf2643
add memoized expression accessors to scheme

* libguile/eval.c: Fix a comment.
  (eval): Abstract out the variable memoization into a function,
  scm_memoize_variable_access_x.

* libguile/memoize.c (memoized_tags): Fix a couple names.
  (scm_memoize_variable_access_x): New internal function. Actually it's
  public to Scheme, but we can't do much about that, because the new
  evaluator will need it.
  (scm_memoized_expression_typecode, scm_memoized_expression_data): New
  accessors for memoized code, for Scheme.
  (scm_memoized_typecode): Looks up the typecode for a symbol.
libguile/eval.c
libguile/memoize.c
libguile/memoize.h