src/Tools/Code/code_preproc.ML
changeset 36610 bafd82950e24
parent 36102 a51d1d154c71
child 36960 01594f816e3a
--- a/src/Tools/Code/code_preproc.ML	Mon May 03 07:59:51 2010 +0200
+++ b/src/Tools/Code/code_preproc.ML	Mon May 03 14:25:56 2010 +0200
@@ -87,7 +87,7 @@
 
 fun add_unfold_post raw_thm thy =
   let
-    val thm = Local_Defs.meta_rewrite_rule (ProofContext.init thy) raw_thm;
+    val thm = Local_Defs.meta_rewrite_rule (ProofContext.init_global thy) raw_thm;
     val thm_sym = Thm.symmetric thm;
   in
     thy |> map_pre_post (fn (pre, post) =>
@@ -157,7 +157,7 @@
 
 fun print_codeproc thy =
   let
-    val ctxt = ProofContext.init thy;
+    val ctxt = ProofContext.init_global thy;
     val pre = (#pre o the_thmproc) thy;
     val post = (#post o the_thmproc) thy;
     val functrans = (map fst o #functrans o the_thmproc) thy;