src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 40133 b61d52de66f0
parent 40132 7ee65dbffa31
child 41414 00b2b6716ed8
equal deleted inserted replaced
40132:7ee65dbffa31 40133:b61d52de66f0
   158 
   158 
   159 (* NB: all of standard functions print strings terminated with new lines, but we don't
   159 (* NB: all of standard functions print strings terminated with new lines, but we don't
   160    add new lines explicitly in PGIP: they are left implicit.  It means that PGIP messages
   160    add new lines explicitly in PGIP: they are left implicit.  It means that PGIP messages
   161    can't be written without newlines. *)
   161    can't be written without newlines. *)
   162 fun setup_messages () =
   162 fun setup_messages () =
   163  (Output.writeln_fn := (fn s => normalmsg Message s);
   163  (Output.Private_Hooks.writeln_fn := (fn s => normalmsg Message s);
   164   Output.status_fn := (fn _ => ());
   164   Output.Private_Hooks.status_fn := (fn _ => ());
   165   Output.report_fn := (fn _ => ());
   165   Output.Private_Hooks.report_fn := (fn _ => ());
   166   Output.urgent_message_fn := (fn s => normalmsg Status s);
   166   Output.Private_Hooks.urgent_message_fn := (fn s => normalmsg Status s);
   167   Output.tracing_fn := (fn s => normalmsg Tracing s);
   167   Output.Private_Hooks.tracing_fn := (fn s => normalmsg Tracing s);
   168   Output.warning_fn := (fn s => errormsg Message Warning s);
   168   Output.Private_Hooks.warning_fn := (fn s => errormsg Message Warning s);
   169   Output.error_fn := (fn s => errormsg Message Fatal s));
   169   Output.Private_Hooks.error_fn := (fn s => errormsg Message Fatal s));
   170 
   170 
   171 
   171 
   172 (* immediate messages *)
   172 (* immediate messages *)
   173 
   173 
   174 fun tell_clear_goals () =
   174 fun tell_clear_goals () =