downgraded IntInf with divMod;
authorwenzelm
Mon, 01 Oct 2007 22:29:56 +0200
changeset 24807 f66ab1dfbae1
parent 24806 c070cd2a1450
child 24808 7c9a970d7ab5
downgraded IntInf with divMod; fixed use_text;
src/Pure/ML-Systems/alice.ML
--- 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;