src/Pure/Thy/thy_info.ML
changeset 27579 97ce525f664c
parent 27495 d2bb5d61b392
child 27843 0bd68bf0cbb8
equal deleted inserted replaced
27578:75945c883672 27579:97ce525f664c
    34   val time_use_thy: string -> unit
    34   val time_use_thy: string -> unit
    35   val remove_thy: string -> unit
    35   val remove_thy: string -> unit
    36   val kill_thy: string -> unit
    36   val kill_thy: string -> unit
    37   val thy_ord: theory * theory -> order
    37   val thy_ord: theory * theory -> order
    38   val begin_theory: string -> string list -> (Path.T * bool) list -> bool -> theory
    38   val begin_theory: string -> string list -> (Path.T * bool) list -> bool -> theory
    39   val end_theory: theory -> theory
    39   val end_theory: theory -> unit
    40   val register_thy: string -> unit
    40   val register_thy: string -> unit
    41   val register_theory: theory -> unit
    41   val register_theory: theory -> unit
    42   val finish: unit -> unit
    42   val finish: unit -> unit
    43 end;
    43 end;
    44 
    44 
   524   let
   524   let
   525     val name = Context.theory_name theory;
   525     val name = Context.theory_name theory;
   526     val _ = check_files name;
   526     val _ = check_files name;
   527     val theory' = Theory.end_theory theory;
   527     val theory' = Theory.end_theory theory;
   528     val _ = change_thy name (fn (deps, _) => (deps, SOME theory'));
   528     val _ = change_thy name (fn (deps, _) => (deps, SOME theory'));
   529   in theory' end;
   529   in () end;
   530 
   530 
   531 
   531 
   532 (* register existing theories *)
   532 (* register existing theories *)
   533 
   533 
   534 fun register_thy name =
   534 fun register_thy name =