equal
deleted
inserted
replaced
3 |
3 |
4 Compatibility file for Poly/ML (version 4.1.x and 4.2.0). |
4 Compatibility file for Poly/ML (version 4.1.x and 4.2.0). |
5 *) |
5 *) |
6 |
6 |
7 use "ML-Systems/exn.ML"; |
7 use "ML-Systems/exn.ML"; |
8 use "ML-Systems/multithreading_dummy.ML"; |
8 use "ML-Systems/multithreading.ML"; |
|
9 use "ML-Systems/time_limit.ML"; |
9 |
10 |
10 val ml_system_fix_ints = false; |
11 val ml_system_fix_ints = false; |
11 |
12 |
12 |
13 |
13 (** ML system and platform related **) |
14 (** ML system and platform related **) |
56 fun check_timer timer = |
57 fun check_timer timer = |
57 let |
58 let |
58 val {sys, usr} = Timer.checkCPUTimer timer; |
59 val {sys, usr} = Timer.checkCPUTimer timer; |
59 val gc = Timer.checkGCTime timer; (* FIXME already included in usr? *) |
60 val gc = Timer.checkGCTime timer; (* FIXME already included in usr? *) |
60 in (sys, usr, gc) end; |
61 in (sys, usr, gc) end; |
61 |
|
62 |
|
63 (* bounded time execution *) |
|
64 |
|
65 (*dummy implementation*) |
|
66 fun interrupt_timeout time f x = |
|
67 f x; |
|
68 |
62 |
69 |
63 |
70 (* prompts *) |
64 (* prompts *) |
71 |
65 |
72 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |
66 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |