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 --- library/globnames.ml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'library/globnames.ml') diff --git a/library/globnames.ml b/library/globnames.ml index efc46a7ac..c37e370a3 100644 --- a/library/globnames.ml +++ b/library/globnames.ml @@ -138,9 +138,9 @@ let constr_of_global_or_constr = function (** {6 Temporary function to brutally form kernel names from section paths } *) -let encode_mind dir id = make_mind (MPfile dir) Dir_path.empty (label_of_id id) +let encode_mind dir id = make_mind (MPfile dir) Dir_path.empty (Label.of_id id) -let encode_con dir id = make_con (MPfile dir) Dir_path.empty (label_of_id id) +let encode_con dir id = make_con (MPfile dir) Dir_path.empty (Label.of_id id) let decode_mind kn = let rec dir_of_mp = function @@ -149,18 +149,18 @@ let decode_mind kn = let _,_,dp = repr_mbid mbid in let id = id_of_mbid mbid in id::(Dir_path.repr dp) - | MPdot(mp,l) -> (id_of_label l)::(dir_of_mp mp) + | MPdot(mp,l) -> (Label.to_id l)::(dir_of_mp mp) in let mp,sec_dir,l = repr_mind kn in if (Dir_path.repr sec_dir) = [] then - (Dir_path.make (dir_of_mp mp)),id_of_label l + (Dir_path.make (dir_of_mp mp)),Label.to_id l else anomaly "Section part should be empty!" let decode_con kn = let mp,sec_dir,l = repr_con kn in match mp,(Dir_path.repr sec_dir) with - MPfile dir,[] -> (dir,id_of_label l) + MPfile dir,[] -> (dir,Label.to_id l) | _ , [] -> anomaly "MPfile expected!" | _ -> anomaly "Section part should be empty!" -- cgit v1.2.3