Skip to content

Commit 614cc25

Browse files
committed
Runtime: rename caml_string_cat into caml_string_concat
1 parent 79a72c2 commit 614cc25

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

runtime/wasm/marshal.wat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
(func $caml_invalid_argument (param (ref eq))))
55
(import "fail" "caml_raise_end_of_file" (func $caml_raise_end_of_file))
66
(import "obj" "double_array_tag" (global $double_array_tag i32))
7-
(import "string" "caml_string_cat"
8-
(func $caml_string_cat
7+
(import "string" "caml_string_concat"
8+
(func $caml_string_concat
99
(param (ref eq)) (param (ref eq)) (result (ref eq))))
1010
(import "obj" "caml_is_closure"
1111
(func $caml_is_closure (param (ref eq)) (result i32)))
@@ -643,21 +643,21 @@
643643

644644
(func $too_large (param $prim (ref $string))
645645
(call $caml_failwith
646-
(call $caml_string_cat (local.get $prim)
646+
(call $caml_string_concat (local.get $prim)
647647
(array.new_data $string $too_large (i32.const 0) (i32.const 55)))))
648648

649649
(data $bad_object ": bad object")
650650

651651
(func $bad_object (param $prim (ref $string))
652652
(call $caml_failwith
653-
(call $caml_string_cat (local.get $prim)
653+
(call $caml_string_concat (local.get $prim)
654654
(array.new_data $string $bad_object (i32.const 0) (i32.const 12)))))
655655

656656
(data $bad_length ": bad length")
657657

658658
(func $bad_length (param $prim (ref $string))
659659
(call $caml_failwith
660-
(call $caml_string_cat (local.get $prim)
660+
(call $caml_string_concat (local.get $prim)
661661
(array.new_data $string $bad_length (i32.const 0) (i32.const 12)))))
662662

663663
(type $marshal_header
@@ -1073,7 +1073,7 @@
10731073
(local.get $fixed_length))))
10741074
(then
10751075
(call $caml_failwith
1076-
(call $caml_string_cat
1076+
(call $caml_string_concat
10771077
(array.new_data $string $incorrect_sizes
10781078
(i32.const 0) (i32.const 49))
10791079
(struct.get $custom_operations $id

runtime/wasm/stdlib.wat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
(func $caml_callback_2
1919
(param (ref eq)) (param (ref eq)) (param (ref eq)) (result (ref eq))))
2020
(import "bindings" "write" (func $write (param i32) (param anyref)))
21-
(import "string" "caml_string_cat"
22-
(func $caml_string_cat
21+
(import "string" "caml_string_concat"
22+
(func $caml_string_concat
2323
(param (ref eq)) (param (ref eq)) (result (ref eq))))
2424
(import "printexc" "caml_format_exception"
2525
(func $caml_format_exception (param (ref eq)) (result (ref eq))))
@@ -202,10 +202,10 @@
202202
(call $write (i32.const 2)
203203
(call $unwrap
204204
(call $caml_jsstring_of_string
205-
(call $caml_string_cat
205+
(call $caml_string_concat
206206
(array.new_data $string $fatal_error
207207
(i32.const 0) (i32.const 23))
208-
(call $caml_string_cat
208+
(call $caml_string_concat
209209
(call $caml_format_exception (local.get $exn))
210210
(array.new_fixed $string 1
211211
(i32.const 10)))))))) ;; `\n`

runtime/wasm/string.wat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
(i32.wrap_i64 (i64.shr_u (local.get $v) (i64.const 56))))
316316
(ref.i31 (i32.const 0)))
317317

318-
(func (export "caml_string_cat")
318+
(func (export "caml_string_concat")
319319
(param $vs1 (ref eq)) (param $vs2 (ref eq)) (result (ref eq))
320320
(local $s1 (ref $string)) (local $s2 (ref $string))
321321
(local $s (ref $string))

0 commit comments

Comments
 (0)