Skip to content

Commit 7f8a239

Browse files
committed
Runtime: adjust str prims
1 parent be27f2f commit 7f8a239

File tree

8 files changed

+2
-61
lines changed

8 files changed

+2
-61
lines changed

compiler/tests-check-prim/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
(executables
22
(names main)
3-
(libraries js_of_ocaml num)
3+
(libraries js_of_ocaml num str)
44
(link_flags
55
(:standard -linkall))
66
(modules main)
77
(modes byte))
88

99
(executables
1010
(names unix)
11-
(libraries js_of_ocaml num unix)
11+
(libraries js_of_ocaml num str unix)
1212
(link_flags
1313
(:standard -linkall))
1414
(modules unix)

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,6 @@ caml_maybe_print_stats
162162
caml_register_global
163163
jsoo_toplevel_reloc
164164

165-
From +str.js:
166-
caml_str_initialize
167-
re_match
168-
re_partial_match
169-
re_replacement_text
170-
re_search_backward
171-
re_search_forward
172-
re_string_match
173-
174165
From +sync.js:
175166
MlMutex
176167
caml_ml_mutex_lock

compiler/tests-check-prim/main.output5

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,6 @@ caml_maybe_print_stats
147147
caml_register_global
148148
jsoo_toplevel_reloc
149149

150-
From +str.js:
151-
caml_str_initialize
152-
re_match
153-
re_partial_match
154-
re_replacement_text
155-
re_search_backward
156-
re_search_forward
157-
re_string_match
158-
159150
From +sys.js:
160151
caml_fatal_uncaught_exception
161152
caml_format_exception

compiler/tests-check-prim/unix-unix.output

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,6 @@ caml_maybe_print_stats
271271
caml_register_global
272272
jsoo_toplevel_reloc
273273

274-
From +str.js:
275-
caml_str_initialize
276-
re_match
277-
re_partial_match
278-
re_replacement_text
279-
re_search_backward
280-
re_search_forward
281-
re_string_match
282-
283274
From +sync.js:
284275
MlMutex
285276
caml_ml_mutex_lock

compiler/tests-check-prim/unix-unix.output5

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,6 @@ caml_maybe_print_stats
258258
caml_register_global
259259
jsoo_toplevel_reloc
260260

261-
From +str.js:
262-
caml_str_initialize
263-
re_match
264-
re_partial_match
265-
re_replacement_text
266-
re_search_backward
267-
re_search_forward
268-
re_string_match
269-
270261
From +sys.js:
271262
caml_fatal_uncaught_exception
272263
caml_format_exception

compiler/tests-check-prim/unix-win32.output

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,6 @@ caml_maybe_print_stats
236236
caml_register_global
237237
jsoo_toplevel_reloc
238238

239-
From +str.js:
240-
caml_str_initialize
241-
re_match
242-
re_partial_match
243-
re_replacement_text
244-
re_search_backward
245-
re_search_forward
246-
re_string_match
247-
248239
From +sync.js:
249240
MlMutex
250241
caml_ml_mutex_lock

compiler/tests-check-prim/unix-win32.output5

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,6 @@ caml_maybe_print_stats
224224
caml_register_global
225225
jsoo_toplevel_reloc
226226

227-
From +str.js:
228-
caml_str_initialize
229-
re_match
230-
re_partial_match
231-
re_replacement_text
232-
re_search_backward
233-
re_search_forward
234-
re_string_match
235-
236227
From +sys.js:
237228
caml_fatal_uncaught_exception
238229
caml_format_exception

runtime/js/str.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,3 @@ function re_replacement_text(repl, groups, orig) {
389389
}
390390
return caml_string_of_jsbytes(res);
391391
}
392-
393-
//Provides: caml_str_initialize
394-
function caml_str_initialize(unit) {
395-
return 0;
396-
}

0 commit comments

Comments
 (0)