diff options
| author | ppedrot | 2012-12-18 17:09:31 +0000 |
|---|---|---|
| committer | ppedrot | 2012-12-18 17:09:31 +0000 |
| commit | aa37087b8e7151ea96321a11012c1064210ef4ea (patch) | |
| tree | fff9ed837668746545832e3bd9f0a6dd99936ee4 /plugins/extraction/common.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 'plugins/extraction/common.ml')
| -rw-r--r-- | plugins/extraction/common.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/extraction/common.ml b/plugins/extraction/common.ml index bd5e2291ac..d8e489be74 100644 --- a/plugins/extraction/common.ml +++ b/plugins/extraction/common.ml @@ -255,7 +255,7 @@ let params_ren_add, params_ren_mem = type visible_layer = { mp : module_path; params : module_path list; - content : ((kind*string),label) Hashtbl.t } + content : ((kind*string),Label.t) Hashtbl.t } let pop_visible, push_visible, get_visible = let vis = ref [] in @@ -321,7 +321,7 @@ let modfstlev_rename = let add_prefixes,get_prefixes,_ = mktable true in fun l -> let coqid = Id.of_string "Coq" in - let id = id_of_label l in + let id = Label.to_id l in try let coqset = get_prefixes id in let nextcoq = next_ident_away coqid coqset in @@ -341,7 +341,7 @@ let rec mp_renaming_fun mp = match mp with | MPdot (mp,l) -> let lmp = mp_renaming mp in if lmp = [""] then (modfstlev_rename l)::lmp - else (modular_rename Mod (id_of_label l))::lmp + else (modular_rename Mod (Label.to_id l))::lmp | MPbound mbid -> let s = modular_rename Mod (id_of_mbid mbid) in if not (params_ren_mem mp) then [s] @@ -584,7 +584,7 @@ let pp_module mp = the constants are directly turned into chars *) let mk_ind path s = - make_mind (MPfile (dirpath_of_string path)) Dir_path.empty (mk_label s) + make_mind (MPfile (dirpath_of_string path)) Dir_path.empty (Label.make s) let ind_ascii = mk_ind "Coq.Strings.Ascii" "ascii" |
