From aa37087b8e7151ea96321a11012c1064210ef4ea Mon Sep 17 00:00:00 2001 From: ppedrot Date: Tue, 18 Dec 2012 17:09:31 +0000 Subject: Modulification of Label git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16097 85f007b7-540e-0410-9357-904b9bb8a0f7 --- printing/printer.ml | 2 +- printing/printmod.ml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'printing') diff --git a/printing/printer.ml b/printing/printer.ml index a3e2fd9c2..9b8c16938 100644 --- a/printing/printer.ml +++ b/printing/printer.ml @@ -587,7 +587,7 @@ let pr_assumptionset env s = try pr_constant env kn with Not_found -> let mp,_,lab = repr_con kn in - str (string_of_mp mp ^ "." ^ string_of_label lab) + str (string_of_mp mp ^ "." ^ Label.to_string lab) in let safe_pr_ltype typ = try str " : " ++ pr_ltype typ with _ -> mt () diff --git a/printing/printmod.ml b/printing/printmod.ml index 7ee5b92de..039d3ec43 100644 --- a/printing/printmod.ml +++ b/printing/printmod.ml @@ -90,7 +90,7 @@ let nametab_register_body mp fp (l,body) = | SFBmodule _ -> () (* TODO *) | SFBmodtype _ -> () (* TODO *) | SFBconst _ -> - push (id_of_label l) (ConstRef (make_con mp Dir_path.empty l)) + push (Label.to_id l) (ConstRef (make_con mp Dir_path.empty l)) | SFBmind mib -> let mind = make_mind mp Dir_path.empty l in Array.iteri @@ -101,7 +101,7 @@ let nametab_register_body mp fp (l,body) = mib.mind_packets let print_body is_impl env mp (l,body) = - let name = str (string_of_label l) in + let name = str (Label.to_string l) in hov 2 (match body with | SFBmodule _ -> str "Module " ++ name | SFBmodtype _ -> str "Module Type " ++ name -- cgit v1.2.3