src/HOL/Tools/record.ML
changeset 42358 b47d41d9f4b5
parent 42290 b1f544c84040
child 42359 6ca5407863ed
--- a/src/HOL/Tools/record.ML	Sat Apr 16 12:46:18 2011 +0200
+++ b/src/HOL/Tools/record.ML	Sat Apr 16 13:48:45 2011 +0200
@@ -914,7 +914,7 @@
 fun record_tr' ctxt t =
   let
     val thy = ProofContext.theory_of ctxt;
-    val extern = Consts.extern (ProofContext.consts_of ctxt);
+    val extern = Consts.extern ctxt (ProofContext.consts_of ctxt);
 
     fun strip_fields t =
       (case strip_comb t of
@@ -957,7 +957,7 @@
 
 fun dest_update ctxt c =
   (case try Lexicon.unmark_const c of
-    SOME d => try (unsuffix updateN) (Consts.extern (ProofContext.consts_of ctxt) d)
+    SOME d => try (unsuffix updateN) (Consts.extern ctxt (ProofContext.consts_of ctxt) d)
   | NONE => NONE);
 
 fun field_updates_tr' ctxt (tm as Const (c, _) $ k $ u) =