diff options
author | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-12-18 17:09:31 +0000 |
---|---|---|
committer | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-12-18 17:09:31 +0000 |
commit | aa37087b8e7151ea96321a11012c1064210ef4ea (patch) | |
tree | fff9ed837668746545832e3bd9f0a6dd99936ee4 /library/globnames.ml | |
parent | f61e682857596f0274b956295efd2bfba63bc8c0 (diff) |
Modulification of Label
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16097 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/globnames.ml')
-rw-r--r-- | library/globnames.ml | 10 |
1 files changed, 5 insertions, 5 deletions
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!" |