aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/globnames.ml
diff options
context:
space:
mode:
Diffstat (limited to 'library/globnames.ml')
-rw-r--r--library/globnames.ml10
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!"