Fixes in weak hash tables handling, notably in `hash-fold'.
authorLudovic Courtes <ludovic.courtes@laas.fr>
Tue, 9 May 2006 22:11:09 +0000 (22:11 +0000)
committerLudovic Courtès <ludo@gnu.org>
Thu, 4 Sep 2008 22:48:16 +0000 (00:48 +0200)
commit741e83fcbfd629c8e043dccad291d265edcf9643
tree32786430e574341212287498b14cbca42f31d136
parentb6ed39c411acebf6c94efe149942310422adc891
Fixes in weak hash tables handling, notably in `hash-fold'.

* libguile/hashtab.c (scm_i_rehash): Return immediately if TABLE is weak.
  (scm_hash_fn_create_handle_x): Explicitly mention that we don't support
  weak alist vectors.
  (scm_internal_hash_fold): Handle weak pairs within buckets.

* libguile/modules.c (scm_module_reverse_lookup): Handle weak alists
  (currently, don't do anything if a NULL pair is met).

git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-16
libguile/hashtab.c
libguile/modules.c