src/Pure/codegen.ML
changeset 26939 1035c89b4c02
parent 26931 aa226d8405a8
child 26974 83adc1eaeaab
--- a/src/Pure/codegen.ML	Sat May 17 23:53:20 2008 +0200
+++ b/src/Pure/codegen.ML	Sun May 18 15:04:09 2008 +0200
@@ -582,13 +582,13 @@
 fun invoke_codegen thy defs dep module brack (gr, t) = (case get_first
    (fn (_, f) => f thy defs gr dep module brack t) (#codegens (CodegenData.get thy)) of
       NONE => codegen_error gr dep ("Unable to generate code for term:\n" ^
-        Sign.string_of_term thy t)
+        Syntax.string_of_term_global thy t)
     | SOME x => x);
 
 fun invoke_tycodegen thy defs dep module brack (gr, T) = (case get_first
    (fn (_, f) => f thy defs gr dep module brack T) (#tycodegens (CodegenData.get thy)) of
       NONE => codegen_error gr dep ("Unable to generate code for type:\n" ^
-        Sign.string_of_typ thy T)
+        Syntax.string_of_typ_global thy T)
     | SOME x => x);
 
 
@@ -987,10 +987,10 @@
         let val T = the_default (the_default (TFree p) default_type)
           (AList.lookup (op =) tvinsts s)
         in if Sign.of_sort thy (T, S) then T
-          else error ("Type " ^ Sign.string_of_typ thy T ^
+          else error ("Type " ^ Syntax.string_of_typ_global thy T ^
             " to be substituted for variable " ^
-            Sign.string_of_typ thy (TFree p) ^ "\ndoes not have sort " ^
-            Sign.string_of_sort thy S)
+            Syntax.string_of_typ_global thy (TFree p) ^ "\ndoes not have sort " ^
+            Syntax.string_of_sort_global thy S)
         end))
       (Logic.list_implies (assms, subst_bounds (frees, strip gi))));
   in test_term thy quiet size iterations gi' end;