diff options
author | Andy Wingo <wingo@pobox.com> | 2011-10-24 18:13:51 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-10-24 18:55:43 +0200 |
commit | 8c5bb72920a41d165726a1b5a610d823971f1ca8 (patch) | |
tree | ed9e8b3b2ff7d617557a6c5796f088b509e910ec /libguile/weak-table.c | |
parent | fdecb44f3252e47ee98d95f3fe473ff898ddf27e (diff) | |
download | guile-8c5bb72920a41d165726a1b5a610d823971f1ca8.tar.gz |
add SCM_HEAP_OBJECT_P
* libguile/tags.h (SCM_HEAP_OBJECT_P): New macro, an alias for
SCM_NIMP.
* libguile/arrays.c:
* libguile/debug.c:
* libguile/foreign.c:
* libguile/gdbint.c:
* libguile/guardians.c:
* libguile/list.c:
* libguile/modules.c:
* libguile/options.c:
* libguile/smob.c:
* libguile/validate.h:
* libguile/weak-set.c:
* libguile/weak-table.c:
* libguile/weak-vector.c: Use it instead of SCM_NIMP or !SCM_IMP.
Diffstat (limited to 'libguile/weak-table.c')
-rw-r--r-- | libguile/weak-table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/weak-table.c b/libguile/weak-table.c index 2810e0b94..e6e7f2e00 100644 --- a/libguile/weak-table.c +++ b/libguile/weak-table.c @@ -127,13 +127,13 @@ register_disappearing_links (scm_t_weak_entry *entry, SCM k, SCM v, scm_t_weak_table_kind kind) { - if (SCM_UNPACK (k) && SCM_NIMP (k) + if (SCM_UNPACK (k) && SCM_HEAP_OBJECT_P (k) && (kind == SCM_WEAK_TABLE_KIND_KEY || kind == SCM_WEAK_TABLE_KIND_BOTH)) SCM_I_REGISTER_DISAPPEARING_LINK ((GC_PTR) &entry->key, (GC_PTR) SCM2PTR (k)); - if (SCM_UNPACK (v) && SCM_NIMP (v) + if (SCM_UNPACK (v) && SCM_HEAP_OBJECT_P (v) && (kind == SCM_WEAK_TABLE_KIND_VALUE || kind == SCM_WEAK_TABLE_KIND_BOTH)) SCM_I_REGISTER_DISAPPEARING_LINK ((GC_PTR) &entry->value, |