Skip to content

Commit

Permalink
use Globals.interactive as the flag
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Feb 11, 2025
1 parent 0e7bd67 commit d58053b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/postkernel/Theory.sig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ sig
val adjoin_after_completion: (unit -> HOLPP.pretty) -> unit
val quote_adjoin_to_theory : string quotation -> string quotation -> unit
val export_theory : unit -> unit
val disable_export_theory : bool ref

(* Make hooks available so that theory changes can be seen by
"interested parties" *)
Expand Down
4 changes: 1 addition & 3 deletions src/postkernel/Theory.sml
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,6 @@ val new_theory_time = ref (total_cpu (Timer.checkCPUTimer Globals.hol_clock))
val report_times = ref true
val _ = Feedback.register_btrace ("report_thy_times", report_times)

val disable_export_theory = ref false

local
val mesg = Lib.with_flag(Feedback.MESG_to_string, Lib.I) HOL_MESG
fun maybe_log_time_to_disk thyname timestr = let
Expand All @@ -911,7 +909,7 @@ local
| NONE => ()
end
in
fun export_theory () = if !disable_export_theory then () else let
fun export_theory () = if !Globals.interactive then () else let
val _ = call_hooks (TheoryDelta.ExportTheory (current_theory()))
val {thid,facts,adjoin,adjoinpc,thydata,mldeps,...} = scrubCT()
val all_thms = Symtab.fold(fn (s,(th,i)) => fn A => (s,th,i)::A) facts []
Expand Down

0 comments on commit d58053b

Please sign in to comment.