stream source: non-critical, assuming exclusive ownership;
authorwenzelm
Sun, 12 Aug 2007 18:53:04 +0200
changeset 24232 a70360a54e5c
parent 24231 85fb973a8207
child 24233 5bec1b4149e7
stream source: non-critical, assuming exclusive ownership;
src/Pure/General/source.ML
--- a/src/Pure/General/source.ML	Sun Aug 12 18:53:03 2007 +0200
+++ b/src/Pure/General/source.ML	Sun Aug 12 18:53:04 2007 +0200
@@ -112,24 +112,23 @@
 
 (* stream source *)
 
-fun slurp_input instream = NAMED_CRITICAL "IO" (fn () =>
+fun slurp_input instream =
   let
     fun slurp () =
       (case TextIO.canInput (instream, 1) handle IO.Io _ => NONE of
         NONE => []
       | SOME 0 => []
       | SOME _ => TextIO.input instream :: slurp ());
-  in maps explode (slurp ()) end);
+  in maps explode (slurp ()) end;
 
 fun drain_stream instream outstream prompt () =
   let val input = slurp_input instream in
     if exists (fn c => c = "\n") input then (input, ())
     else
       (case
-        NAMED_CRITICAL "IO" (fn () =>
           (TextIO.output (outstream, Output.output prompt);
             TextIO.flushOut outstream;
-            TextIO.inputLine instream)) of
+            TextIO.inputLine instream) of
           SOME line => (input @ explode line, ())
         | NONE => (input, ()))
   end;