diff options
author | soubiran <soubiran@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-10-28 13:15:41 +0000 |
---|---|---|
committer | soubiran <soubiran@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-10-28 13:15:41 +0000 |
commit | e93d18133d7f6d11bb8676ccbed982db8c7c24d6 (patch) | |
tree | f1706cfb622d56dda4c99a1810e2810986ff1b3e /library/declaremods.ml | |
parent | 8718cb90fd33fae5f38fb0eca6e73256d7518355 (diff) |
Same as commit 12430 but with the good version of the function iter_all_segment
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12431 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/declaremods.ml')
-rw-r--r-- | library/declaremods.ml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml index 53f9617c5..68ce86b3a 100644 --- a/library/declaremods.ml +++ b/library/declaremods.ml @@ -923,12 +923,10 @@ let iter_all_segments f = let _ = MPmap.iter (fun _ (prefix,objects) -> - let apply_obj (id,obj) = match object_tag obj with + let rec apply_obj (id,obj) = match object_tag obj with | "INCLUDE" -> - let (_,(_,mp,objs)) = out_include obj in - let apply_include (id,obj) = - f (make_oname prefix id) obj in - List.iter apply_include objs + let (_,(_,_,objs)) = out_include obj in + List.iter apply_obj objs | _ -> f (make_oname prefix id) obj in List.iter apply_obj objects) |