src/Pure/ML-Systems/mlworks.ML
changeset 4973 7420178bd2d9
parent 4430 b2c1cf960c53
child 4977 6cec2c0ffdbf
equal deleted inserted replaced
4972:7fe1d30c1374 4973:7420178bd2d9
    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;