adapted to lates experimental version;
authorwenzelm
Mon, 02 Mar 2009 20:31:27 +0100
changeset 30205 e33ce8d765b4
parent 30204 8ede2f7104cf
child 30206 48507466d9d2
child 30208 0abadde7b3fb
adapted to lates experimental version; PolyML.Compiler.CPPrintInAlphabeticalOrder false (redundant?);
src/Pure/ML-Systems/polyml-experimental.ML
--- a/src/Pure/ML-Systems/polyml-experimental.ML	Mon Mar 02 20:29:43 2009 +0100
+++ b/src/Pure/ML-Systems/polyml-experimental.ML	Mon Mar 02 20:31:27 2009 +0100
@@ -49,16 +49,17 @@
       | c :: cs =>
           (in_buffer := cs; if c = #"\n" then current_line := ! current_line + 1 else (); SOME c));
     fun put s = out_buffer := s :: ! out_buffer;
-    fun put_message (prt, is_err, {file, line, offset}) =
-     (put (if is_err then "Error: " else "Warning: ");
-      PolyML.prettyPrint (put, 76) prt;
+    fun put_message {message, hard, location = {startLine = line, ...}, context} =
+     (put (if hard then "Error: " else "Warning: ");
+      PolyML.prettyPrint (put, 76) message;
       put (str_of_pos line name ^ "\n"));
 
     val parameters =
      [PolyML.Compiler.CPOutStream put,
       PolyML.Compiler.CPLineNo (fn () => ! current_line),
       PolyML.Compiler.CPErrorMessageProc put_message,
-      PolyML.Compiler.CPNameSpace name_space];
+      PolyML.Compiler.CPNameSpace name_space,
+      PolyML.Compiler.CPPrintInAlphabeticalOrder false];
     val _ =
       (while not (List.null (! in_buffer)) do
         PolyML.compiler (get, parameters) ())