summaryrefslogtreecommitdiffstats
path: root/byterun/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/callback.c')
-rw-r--r--byterun/callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/callback.c b/byterun/callback.c
index 6e1d8efbb..84e0c4116 100644
--- a/byterun/callback.c
+++ b/byterun/callback.c
@@ -40,7 +40,7 @@ static int callback_code_threaded = 0;
static void thread_callback(void)
{
- thread_code(callback_code, sizeof(callback_code));
+ caml_thread_code(callback_code, sizeof(callback_code));
callback_code_threaded = 1;
}
@@ -196,7 +196,7 @@ CAMLprim value caml_register_named_value(value vname, value val)
nv->val = val;
nv->next = named_value_table[h];
named_value_table[h] = nv;
- register_global_root(&nv->val);
+ caml_register_global_root(&nv->val);
return Val_unit;
}