--- a/src/Pure/ML-Systems/alice.ML Mon Oct 01 21:19:54 2007 +0200
+++ b/src/Pure/ML-Systems/alice.ML Mon Oct 01 22:29:56 2007 +0200
@@ -8,6 +8,9 @@
$ cd Isabelle/src/Pure
$ env ALICE_JIT_MODE=0 alice
- val ml_system = "alice";
+- use "ML-Systems/exn.ML";
+- use "ML-Systems/multithreading.ML";
+- use "ML-Systems/time_limit.ML";
- use "ML-Systems/alice.ML";
- use "ROOT.ML";
- Session.finish ();
@@ -15,11 +18,6 @@
val ml_system_fix_ints = false;
-use "ML-Systems/exn.ML";
-use "ML-Systems/multithreading.ML";
-use "ML-Systems/time_limit.ML";
-
-
fun exit 0 = (OS.Process.exit OS.Process.success): unit
| exit _ = OS.Process.exit OS.Process.failure;
@@ -29,6 +27,13 @@
(*low-level pointer equality*)
fun pointer_eq (_: 'a, _: 'a) = false;
+(*downgraded IntInf*)
+structure IntInf =
+struct
+ fun divMod (x, y) = (x div y, x mod y);
+ open Int;
+end;
+
(* restore old-style character / string functions *)
@@ -102,9 +107,9 @@
(* ML command execution *)
-fun use_text name (print, err) verbose txt = (Compiler.eval txt; ());
+fun use_text tune name (print, err) verbose txt = (Compiler.eval txt; ());
-fun use_file _ _ name = use name;
+fun use_file tune output verbose name = use name;