-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcore_runtime.js
More file actions
30 lines (24 loc) · 865 Bytes
/
core_runtime.js
File metadata and controls
30 lines (24 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//Provides: unix_gethostname
//Requires: caml_new_string
function unix_gethostname() {
return caml_new_string('localhost');
}
//Provides: caml_hash_string
//Requires: caml_hash
function caml_hash_string(str) { return caml_hash(10,100,0,str); }
//Provides: caml_hash_double
//Requires: caml_hash
function caml_hash_double(num) { return caml_hash(10,100,0,num); }
//Provides: core_array_unsafe_float_blit
//Requires: caml_array_blit
function core_array_unsafe_float_blit(a1, i1, a2, i2, len) {
return caml_array_blit(a1, i1, a2, i2, len);
}
//Provides: core_array_unsafe_int_blit
//Requires: caml_array_blit
function core_array_unsafe_int_blit(a1, i1, a2, i2, len) {
return caml_array_blit(a1, i1, a2, i2, len);
}
//Provides: fixed_close_channel
//Requires: caml_ml_close_channel
function fixed_close_channel(num) { return caml_ml_close_channel(num); }