# HG changeset patch # User wenzelm # Date 1236022287 -3600 # Node ID e33ce8d765b433e1d07cf1db5acb373ddc6c7c41 # Parent 8ede2f7104cfcfdf6825b54073d1f054e8a39a0d adapted to lates experimental version; PolyML.Compiler.CPPrintInAlphabeticalOrder false (redundant?); diff -r 8ede2f7104cf -r e33ce8d765b4 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) ())