aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-gsmob.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-02-20 09:27:12 -0800
committerDoug Evans <xdje42@gmail.com>2014-02-20 09:27:12 -0800
commit1254eefca2c2af47e8333bbc33d878998703a204 (patch)
tree263fa84864a3ccfa8a218c0c9df20994d852a7d7 /gdb/guile/scm-gsmob.c
parent8c3cb9fa4405d86e57cc3b02ef38e50ef6747924 (diff)
downloadgdb-1254eefca2c2af47e8333bbc33d878998703a204.zip
gdb-1254eefca2c2af47e8333bbc33d878998703a204.tar.gz
gdb-1254eefca2c2af47e8333bbc33d878998703a204.tar.bz2
Move containing_scm arg from gdbscm_fill_eqable_gsmob_ptr_slot
to gdbscm_init_eqable_gsmob. * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm. All callers updated. (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm. All callers updated. * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update. (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
Diffstat (limited to 'gdb/guile/scm-gsmob.c')
-rw-r--r--gdb/guile/scm-gsmob.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gdb/guile/scm-gsmob.c b/gdb/guile/scm-gsmob.c
index 5f9e856..b0f9e19 100644
--- a/gdb/guile/scm-gsmob.c
+++ b/gdb/guile/scm-gsmob.c
@@ -148,13 +148,13 @@ gdbscm_init_chained_gsmob (chained_gdb_smob *base)
/* Initialize an eqable_gdb_smob.
This is the same as gdbscm_init_gsmob except that it also sets
- containing_scm to #f. */
+ BASE->containing_scm to CONTAINING_SCM. */
void
-gdbscm_init_eqable_gsmob (eqable_gdb_smob *base)
+gdbscm_init_eqable_gsmob (eqable_gdb_smob *base, SCM containing_scm)
{
gdbscm_init_gsmob ((gdb_smob *) base);
- base->containing_scm = SCM_BOOL_F;
+ base->containing_scm = containing_scm;
}
/* Call this from each smob's "mark" routine.
@@ -419,16 +419,13 @@ gdbscm_find_eqable_gsmob_ptr_slot (htab_t htab, eqable_gdb_smob *base)
return (eqable_gdb_smob **) slot;
}
-/* Record CONTAINING_SCM as the object containing BASE, and record it in
- SLOT. SLOT must be the result of calling gdbscm_find_eqable_gsmob_ptr_slot
- on BASE (or equivalent for lookup). */
+/* Record BASE in SLOT. SLOT must be the result of calling
+ gdbscm_find_eqable_gsmob_ptr_slot on BASE (or equivalent for lookup). */
void
gdbscm_fill_eqable_gsmob_ptr_slot (eqable_gdb_smob **slot,
- eqable_gdb_smob *base,
- SCM containing_scm)
+ eqable_gdb_smob *base)
{
- base->containing_scm = containing_scm;
*slot = base;
}