Skip to content

Commit d414b70

Browse files
committed
Runtime: adjust toplevel prims
1 parent 9196200 commit d414b70

File tree

7 files changed

+2
-52
lines changed

7 files changed

+2
-52
lines changed

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ caml_set_static_env
157157

158158
From +toplevel.js:
159159
caml_dynlink_get_bytecode_sections
160-
caml_static_alloc
161-
caml_static_free
162-
caml_terminfo_backup
163-
caml_terminfo_resume
164-
caml_terminfo_setup
165-
caml_terminfo_standout
166160
jsoo_toplevel_init_compile
167161
jsoo_toplevel_init_reloc
168162

compiler/tests-check-prim/main.output5

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ caml_sys_const_naked_pointers_checked
146146

147147
From +toplevel.js:
148148
caml_get_section_table
149-
caml_static_alloc
150-
caml_static_free
151-
caml_terminfo_backup
152-
caml_terminfo_resume
153-
caml_terminfo_setup
154-
caml_terminfo_standout
155149
jsoo_toplevel_init_compile
156150
jsoo_toplevel_init_reloc
157151

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,6 @@ caml_set_static_env
266266

267267
From +toplevel.js:
268268
caml_dynlink_get_bytecode_sections
269-
caml_static_alloc
270-
caml_static_free
271-
caml_terminfo_backup
272-
caml_terminfo_resume
273-
caml_terminfo_setup
274-
caml_terminfo_standout
275269
jsoo_toplevel_init_compile
276270
jsoo_toplevel_init_reloc
277271

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@ caml_sys_const_naked_pointers_checked
257257

258258
From +toplevel.js:
259259
caml_get_section_table
260-
caml_static_alloc
261-
caml_static_free
262-
caml_terminfo_backup
263-
caml_terminfo_resume
264-
caml_terminfo_setup
265-
caml_terminfo_standout
266260
jsoo_toplevel_init_compile
267261
jsoo_toplevel_init_reloc
268262

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,6 @@ caml_set_static_env
231231

232232
From +toplevel.js:
233233
caml_dynlink_get_bytecode_sections
234-
caml_static_alloc
235-
caml_static_free
236-
caml_terminfo_backup
237-
caml_terminfo_resume
238-
caml_terminfo_setup
239-
caml_terminfo_standout
240234
jsoo_toplevel_init_compile
241235
jsoo_toplevel_init_reloc
242236

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,6 @@ caml_sys_const_naked_pointers_checked
223223

224224
From +toplevel.js:
225225
caml_get_section_table
226-
caml_static_alloc
227-
caml_static_free
228-
caml_terminfo_backup
229-
caml_terminfo_resume
230-
caml_terminfo_setup
231-
caml_terminfo_standout
232226
jsoo_toplevel_init_compile
233227
jsoo_toplevel_init_reloc
234228

runtime/js/toplevel.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@
1717
// along with this program; if not, write to the Free Software
1818
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1919

20-
//Provides: caml_terminfo_setup
21-
function caml_terminfo_setup() {
22-
return 1;
23-
} // Bad_term
24-
//Provides: caml_terminfo_backup
25-
function caml_terminfo_backup() {
26-
return 0;
27-
}
28-
//Provides: caml_terminfo_standout
29-
function caml_terminfo_standout() {
30-
return 0;
31-
}
32-
//Provides: caml_terminfo_resume
33-
function caml_terminfo_resume() {
34-
return 0;
35-
}
3620
//Provides: caml_terminfo_rows
3721
function caml_terminfo_rows() {
3822
return 0;
@@ -151,11 +135,13 @@ function caml_static_release_bytecode() {
151135

152136
//Provides: caml_static_alloc
153137
//Requires: caml_create_bytes
138+
//Version: < 4.12
154139
function caml_static_alloc(len) {
155140
return caml_create_bytes(len);
156141
}
157142

158143
//Provides: caml_static_free
144+
//Version: < 4.12
159145
function caml_static_free() {
160146
return 0;
161147
}

0 commit comments

Comments
 (0)