src/Tools/Code/code_runtime.ML
changeset 41376 08240feb69c7
parent 41349 0e2a3f22f018
child 41472 f6ab14e61604
--- a/src/Tools/Code/code_runtime.ML	Tue Dec 21 19:35:36 2010 +0100
+++ b/src/Tools/Code/code_runtime.ML	Tue Dec 21 21:05:50 2010 +0100
@@ -228,16 +228,13 @@
 
 fun register_const const = register_code [] [const];
 
-fun print_const const all_struct_name consts_map =
-  (Long_Name.append all_struct_name o the o AList.lookup (op =) consts_map) const;
-
 fun print_code is_first const ctxt =
   let
     val (_, (_, acc_code)) = Code_Antiq_Data.get ctxt;
     val (ml_code, consts_map) = Lazy.force acc_code;
     val ml_code = if is_first then ml_code else "";
-    val all_struct_name = "Isabelle";
-  in (ml_code, print_const const all_struct_name consts_map) end;
+    val body = " Isabelle." ^ the (AList.lookup (op =) consts_map const) ^ " ";
+  in (ml_code, body) end;
 
 in