summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib.c b/lib.c
index 66e859f1..c61cf60d 100644
--- a/lib.c
+++ b/lib.c
@@ -8067,13 +8067,11 @@ ucnum cobj_handle_hash_op(val obj, int *count, ucnum seed)
return cobj_eq_hash_op(coerce(val, handle), count, seed);
}
-static struct cobj_ops cptr_ops = {
- cobj_equal_handle_op,
- cptr_print_op,
- cobj_destroy_stub_op,
- cobj_mark_op,
- cobj_handle_hash_op
-};
+static struct cobj_ops cptr_ops = cobj_ops_init(cobj_equal_handle_op,
+ cptr_print_op,
+ cobj_destroy_stub_op,
+ cobj_mark_op,
+ cobj_handle_hash_op);
val cptr_typed(mem_t *handle, val type_sym, struct cobj_ops *ops)
{