Skip to content

Commit a386a0d

Browse files
committed
provide missing stubs
1 parent bafc607 commit a386a0d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

runtime/stubs.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,32 @@ function ml_z_mul_overflows(x) {
1717
return true;
1818
}
1919

20+
//Provides: unix_times
21+
function unix_times(x) {
22+
return x;
23+
}
24+
25+
//Provides: max_float
26+
function max_float(x) {
27+
return x;
28+
}
29+
30+
//Provides: smallest_float
31+
function smallest_float(x) {
32+
return x;
33+
}
34+
35+
//Provides: ml_z_of_int
36+
function ml_z_of_int(x) {
37+
return x | 0;
38+
}
39+
40+
//Provides: caml_thread_initialize const
41+
function caml_thread_initialize() {}
42+
43+
//Provides: caml_mutex_new const
44+
function caml_mutex_new() {}
45+
2046
//Provides: camlidl_apron_init
2147
function camlidl_apron_init() { return 0; }
2248

@@ -29,6 +55,9 @@ function camlidl_oct_oct_manager_alloc() { return 0; }
2955
//Provides: camlidl_polka_pk_manager_alloc_loose
3056
function camlidl_polka_pk_manager_alloc_loose() { return 0; }
3157

58+
//Provides: camlidl_polka_pk_manager_alloc_equalities
59+
function camlidl_polka_pk_manager_alloc_equalities() { return 0; }
60+
3261
//Provides: camlidl_box_box_manager_alloc
3362
function camlidl_box_box_manager_alloc() { return 0; }
3463

@@ -43,3 +72,9 @@ function camlidl_abstract1_ap_abstract1_top() { return 0; }
4372

4473
//Provides: camlidl_var_ap_var_hash
4574
function camlidl_var_ap_var_hash() { return 0; }
75+
76+
//Provides: camlidl_mpq_mpq_init
77+
function camlidl_mpq_mpq_init() { return 0; }
78+
79+
//Provides: camlidl_mpq_mpq_set_si
80+
function camlidl_mpq_mpq_set_si() { return 0; }

0 commit comments

Comments
 (0)