equal
deleted
inserted
replaced
22 (fn () => MLWorks.Internal.Runtime.Memory.max_stack_blocks := |
22 (fn () => MLWorks.Internal.Runtime.Memory.max_stack_blocks := |
23 ! MLWorks.Internal.Runtime.Memory.max_stack_blocks + 20); |
23 ! MLWorks.Internal.Runtime.Memory.max_stack_blocks + 20); |
24 |
24 |
25 |
25 |
26 (* Poly/ML emulation *) |
26 (* Poly/ML emulation *) |
27 |
|
28 (*just for versions of MLWorks that don't provide the Option structure*) |
|
29 structure Option = General; |
|
30 |
27 |
31 (*To exit the system with an exit code -- an alternative to ^D *) |
28 (*To exit the system with an exit code -- an alternative to ^D *) |
32 fun exit 0 = (OS.Process.exit OS.Process.success): unit |
29 fun exit 0 = (OS.Process.exit OS.Process.success): unit |
33 | exit _ = OS.Process.exit OS.Process.failure; |
30 | exit _ = OS.Process.exit OS.Process.failure; |
34 fun quit () = exit 0; |
31 fun quit () = exit 0; |