src/Pure/ML-Systems/polyml.ML
author haftmann
Fri, 25 Sep 2009 09:50:31 +0200
changeset 32705 04ce6bb14d85
parent 32294 d00238af17b6
child 32776 1504f9c2d060
permissions -rw-r--r--
merged

(*  Title:      Pure/ML-Systems/polyml.ML

Compatibility wrapper for Poly/ML 5.2 and 5.2.1.
*)

open Thread;

structure ML_Name_Space =
struct
  open PolyML.NameSpace;
  type T = PolyML.NameSpace.nameSpace;
  val global = PolyML.globalNameSpace;
end;

fun reraise exn = raise exn;

use "ML-Systems/polyml_common.ML";

if ml_system = "polyml-5.2"
then (use "ML-Systems/thread_dummy.ML"; use "ML-Systems/multithreading.ML")
else use "ML-Systems/multithreading_polyml.ML";

val pointer_eq = PolyML.pointerEq;

fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;

use "ML-Systems/compiler_polyml-5.2.ML";
use "ML-Systems/pp_polyml.ML";