diff options
| author | soubiran | 2008-03-26 13:22:04 +0000 |
|---|---|---|
| committer | soubiran | 2008-03-26 13:22:04 +0000 |
| commit | 920926c8bded37b057ba0c59f0144a085a1bb35e (patch) | |
| tree | c9b4f56c28aeef27217167c610a2d57f5392d3f6 /kernel/mod_subst.ml | |
| parent | 0e6f439bac7c9dc5598d311c14db8e7049f66e0c (diff) | |
Correction d'un bug sur Import/Export : ces fonctionnalites sont gerees en-dehors du noyau et
sont donc independantes des substitutions engendrees par les alias de module.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10720 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/mod_subst.ml')
| -rw-r--r-- | kernel/mod_subst.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/mod_subst.ml b/kernel/mod_subst.ml index 3b3d280900..0df3e66317 100644 --- a/kernel/mod_subst.ml +++ b/kernel/mod_subst.ml @@ -404,6 +404,14 @@ let join_alias (subst1 : substitution) (subst2 : substitution) = mp',resolve'' in Umap.mapi (apply_subst subst2) subst1 +let remove_alias subst = + let rec remove key (mp,resolve) sub = + match key with + MPI _ -> sub + | _ -> Umap.add key (mp,resolve) sub + in + Umap.fold remove subst empty_subst + let rec occur_in_path uid path = match uid,path with |
