summaryrefslogtreecommitdiffhomepage
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/types.c b/types.c
index e888687..777de00 100644
--- a/types.c
+++ b/types.c
@@ -1756,8 +1756,8 @@ ucv_equal(uc_value_t *uv1, uc_value_t *uv2)
}
}
-void
-ucv_gc(uc_vm_t *vm, bool final)
+static void
+ucv_gc_common(uc_vm_t *vm, bool final)
{
uc_weakref_t *ref, *tmp;
uc_value_t *val;
@@ -1798,3 +1798,15 @@ ucv_gc(uc_vm_t *vm, bool final)
}
}
}
+
+void
+ucv_gc(uc_vm_t *vm)
+{
+ ucv_gc_common(vm, false);
+}
+
+void
+ucv_freeall(uc_vm_t *vm)
+{
+ ucv_gc_common(vm, true);
+}