equal
deleted
inserted
replaced
14 *) |
14 *) |
15 |
15 |
16 val ml_system_fix_ints = false; |
16 val ml_system_fix_ints = false; |
17 |
17 |
18 use "ML-Systems/exn.ML"; |
18 use "ML-Systems/exn.ML"; |
19 use "ML-Systems/multithreading_dummy.ML"; |
19 use "ML-Systems/multithreading.ML"; |
|
20 use "ML-Systems/time_limit.ML"; |
20 |
21 |
21 |
22 |
22 fun exit 0 = (OS.Process.exit OS.Process.success): unit |
23 fun exit 0 = (OS.Process.exit OS.Process.success): unit |
23 | exit _ = OS.Process.exit OS.Process.failure; |
24 | exit _ = OS.Process.exit OS.Process.failure; |
24 |
25 |
123 fun inputLine is = TextIO.inputLine is |
124 fun inputLine is = TextIO.inputLine is |
124 handle IO.Io _ => raise Interrupt; |
125 handle IO.Io _ => raise Interrupt; |
125 end; |
126 end; |
126 |
127 |
127 |
128 |
128 (* bounded time execution *) |
|
129 |
|
130 (*dummy implementation*) |
|
131 fun interrupt_timeout time f x = |
|
132 f x; |
|
133 |
|
134 |
|
135 |
129 |
136 (** OS related **) |
130 (** OS related **) |
137 |
131 |
138 (* current directory *) |
132 (* current directory *) |
139 |
133 |