Skip to content

Commit d0ad122

Browse files
authored
Merge pull request #241 from jonludlam/js_fixup
Javascript packaging fixes
2 parents 19073c2 + b783a59 commit d0ad122

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

js/dune

-4
This file was deleted.

js/cstruct.js lib/cstruct.js

-20
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*/
1616

17-
//Provides: caml_blit_string_to_bigstring
18-
//Requires: caml_ba_set_1, caml_string_unsafe_get
19-
function caml_blit_string_to_bigstring(str, str_off, buf, buf_off, len) {
20-
var i;
21-
for (i = 0; i < len; i++) {
22-
caml_ba_set_1(buf, buf_off + i, caml_string_unsafe_get(str, str_off + i));
23-
}
24-
return 0;
25-
}
26-
27-
//Provides: caml_blit_bigstring_to_string
28-
//Requires: caml_ba_get_1, caml_string_unsafe_set
29-
function caml_blit_bigstring_to_string(buf, buf_off, str, str_off, len) {
30-
var i;
31-
for (i = 0; i < len; i++) {
32-
caml_string_unsafe_set(str, str_off + i, caml_ba_get_1(buf, buf_off + i));
33-
}
34-
return 0;
35-
}
36-
3717
//Provides: caml_blit_bigstring_to_bigstring
3818
//Requires: caml_ba_get_1, caml_ba_set_1
3919
function caml_blit_bigstring_to_bigstring(src, src_off, dst, dst_off, len) {

lib/dune

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
(public_name cstruct)
44
(libraries bigarray)
55
(c_names cstruct_stubs)
6+
(js_of_ocaml (javascript_files cstruct.js))
67
(modules cstruct))
78

89
(library

0 commit comments

Comments
 (0)