summaryrefslogtreecommitdiff
path: root/libguile/struct.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-05-01 20:34:47 +0200
committerAndy Wingo <wingo@pobox.com>2011-05-01 23:01:14 +0200
commit1d9c2e6271105ee0f728127d9b544432b7cc0f4f (patch)
treea194ce6e65588549d61bf493f29ae4b6bb09a6f3 /libguile/struct.h
parent8bee35bc536eebd3d223c23990a65b1341e760ac (diff)
downloadguile-1d9c2e6271105ee0f728127d9b544432b7cc0f4f.tar.gz
disallow get-handle / create-handle! of weak hash tables
* libguile/hashtab.c (scm_hashq_get_handle, scm_hashq_create_handle_x) (scm_hashv_get_handle, scm_hashv_create_handle_x) (scm_hash_get_handle, scm_hash_create_handle_x) (scm_hashx_get_handle, scm_hashx_create_handle_x): Don't allow these functions to be called on weak hash tables, as we have no idea when the GC will null out fields of the handle, and set-cdr! won't register disappearing links, and set-car! would never work of course.
Diffstat (limited to 'libguile/struct.h')
0 files changed, 0 insertions, 0 deletions