Compatibility wrapper for Poly/ML 5.1.
authorwenzelm
Mon, 24 Mar 2008 18:35:47 +0100
changeset 26381 509a1ca9d35c
parent 26380 5d368eb42c11
child 26382 16628f5c7e28
Compatibility wrapper for Poly/ML 5.1.
src/Pure/ML-Systems/polyml-5.1.ML
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/ML-Systems/polyml-5.1.ML	Mon Mar 24 18:35:47 2008 +0100
@@ -0,0 +1,21 @@
+(*  Title:      Pure/ML-Systems/polyml-5.1.ML
+    ID:         $Id$
+
+Compatibility wrapper for Poly/ML 5.1.
+*)
+
+use "ML-Systems/polyml_common.ML";
+use "ML-Systems/multithreading_polyml.ML";
+
+val pointer_eq = PolyML.pointerEq;
+
+
+(* single-threaded profiling *)
+
+local val profile_orig = profile in
+
+fun profile 0 f x = f x
+  | profile n f x = NAMED_CRITICAL "profile" (fn () => profile_orig n f x);
+
+end;
+