Skip to content

Commit c1f5a22

Browse files
committed
Add stubs that runtime5 needs for linking with stdlib
1 parent 4727471 commit c1f5a22

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

ocaml/runtime/array.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,3 +593,37 @@ CAMLprim value caml_array_fill(value array,
593593
}
594594
return Val_unit;
595595
}
596+
597+
/* Linker compatibility with stdlib externals
598+
CR ocaml 5 runtime: implement locals
599+
CR ocaml 5 runtime: implement iarrays */
600+
601+
CAMLprim value caml_array_concat_local(value al)
602+
{
603+
caml_failwith("Called caml_array_concat_local in runtime5: not implemented.");
604+
}
605+
606+
CAMLprim value caml_array_sub_local(value al, value a, value b)
607+
{
608+
caml_failwith("Called caml_array_concat_local in runtime5: not implemented.");
609+
}
610+
611+
CAMLprim value caml_make_local_vect(value i, value a)
612+
{
613+
caml_failwith("Called caml_array_concat_local in runtime5: not implemented.");
614+
}
615+
616+
CAMLprim value caml_array_append_local(value a1, value a2)
617+
{
618+
caml_failwith("Called caml_array_append_local in runtime5: not implemented.");
619+
}
620+
621+
CAMLprim value caml_iarray_of_array(value a)
622+
{
623+
return a;
624+
}
625+
626+
CAMLprim value caml_array_of_iarray(value a)
627+
{
628+
return a;
629+
}

ocaml/runtime/runtime_events.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,3 +832,15 @@ CAMLprim value caml_runtime_events_user_resolve(
832832
CAMLdrop;
833833
return (value) Val_none;
834834
}
835+
836+
/* Linker compatibility with unused 4 stdlib externals */
837+
838+
CAMLprim value caml_eventlog_resume(value v)
839+
{
840+
caml_failwith("Called caml_eventlog_resume in runtime5: not supported.");
841+
}
842+
843+
CAMLprim value caml_eventlog_pause(value v)
844+
{
845+
caml_failwith("Called caml_eventlog_pause in runtime5: not supported.");
846+
}

0 commit comments

Comments
 (0)