equal
deleted
inserted
replaced
61 |
61 |
62 (*prompts*) |
62 (*prompts*) |
63 fun ml_prompts p1 p2 = |
63 fun ml_prompts p1 p2 = |
64 (Compiler.Control.primaryPrompt := p1; Compiler.Control.secondaryPrompt := p2); |
64 (Compiler.Control.primaryPrompt := p1; Compiler.Control.secondaryPrompt := p2); |
65 |
65 |
66 (*dummy impelemtation*) |
66 (*dummy implementation*) |
67 fun profile (n: int) f x = f x; |
67 fun profile (n: int) f x = f x; |
68 |
68 |
69 (*dummy impelemtation*) |
69 (*dummy implementation*) |
70 fun exception_trace f = f (); |
70 fun exception_trace f = f (); |
71 |
71 |
72 (case #version_id (Compiler.version) of |
72 (case #version_id (Compiler.version) of |
73 [110, x] => if x >= 44 |
73 [110, x] => if x >= 44 |
74 then use "ML-Systems/smlnj-basis-compat.ML" |
74 then use "ML-Systems/smlnj-basis-compat.ML" |
141 if ! interrupted then raise Interrupt else release (! result) |
141 if ! interrupted then raise Interrupt else release (! result) |
142 end; |
142 end; |
143 |
143 |
144 end; |
144 end; |
145 |
145 |
|
146 |
146 (** Signal handling: emulation of the Poly/ML Signal structure. Note that types |
147 (** Signal handling: emulation of the Poly/ML Signal structure. Note that types |
147 Posix.Signal.signal and Signals.signal differ **) |
148 Posix.Signal.signal and Signals.signal differ **) |
148 |
149 |
149 structure IsaSignal = |
150 structure IsaSignal = |
150 struct |
151 struct |