aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/extraction/ocaml.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-07-10 15:30:56 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-07-10 15:30:56 +0000
commit9611989ed576deddb11a079ded341dfe99744b07 (patch)
tree42336cf1f82de3bd61890b2db4c5e42fcd7101e8 /contrib/extraction/ocaml.ml
parentf919c53f3583c3419282bcad73ad42f427eb594a (diff)
renommage des modules 1er niveau en monolithique
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4233 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/extraction/ocaml.ml')
-rw-r--r--contrib/extraction/ocaml.ml16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/extraction/ocaml.ml b/contrib/extraction/ocaml.ml
index 0f67cfde8..f6d8ab04b 100644
--- a/contrib/extraction/ocaml.ml
+++ b/contrib/extraction/ocaml.ml
@@ -534,20 +534,20 @@ let rec pp_specif mpl = function
| (l,Smodule mt) ->
hov 1
(str "module " ++
- P.pp_short_module (id_of_label l) ++
+ P.pp_module mpl (MPdot (List.hd mpl, l)) ++
str " : " ++ fnl () ++ pp_module_type mpl None (* (Some l) *) mt)
| (l,Smodtype mt) ->
hov 1
(str "module type " ++
- P.pp_short_module (id_of_label l) ++
+ P.pp_module mpl (MPdot (List.hd mpl, l)) ++
str " = " ++ fnl () ++ pp_module_type mpl None mt)
and pp_module_type mpl ol = function
| MTident kn ->
- let mp,_,l = repr_kn kn in P.pp_long_module mpl (MPdot (mp,l))
+ let mp,_,l = repr_kn kn in P.pp_module mpl (MPdot (mp,l))
| MTfunsig (mbid, mt, mt') ->
str "functor (" ++
- P.pp_short_module (id_of_mbid mbid) ++
+ P.pp_module mpl (MPbound mbid) ++
str ":" ++
pp_module_type mpl None mt ++
str ") ->" ++ fnl () ++
@@ -569,7 +569,7 @@ let rec pp_structure_elem mpl = function
| (_,SEdecl d) -> pp_decl mpl d
| (l,SEmodule m) ->
hov 1
- (str "module " ++ P.pp_short_module (id_of_label l) ++
+ (str "module " ++ P.pp_module mpl (MPdot (List.hd mpl, l)) ++
(* if you want signatures everywhere: *)
(*i str " :" ++ fnl () ++ i*)
(*i pp_module_type mpl None m.ml_mod_type ++ fnl () ++ i*)
@@ -578,14 +578,14 @@ let rec pp_structure_elem mpl = function
pp_module_expr mpl (Some l) m.ml_mod_expr)
| (l,SEmodtype m) ->
hov 1
- (str "module type " ++ P.pp_short_module (id_of_label l) ++
+ (str "module type " ++ P.pp_module mpl (MPdot (List.hd mpl, l)) ++
str " = " ++ fnl () ++ pp_module_type mpl None m)
and pp_module_expr mpl ol = function
- | MEident mp' -> P.pp_long_module mpl mp'
+ | MEident mp' -> P.pp_module mpl mp'
| MEfunctor (mbid, mt, me) ->
str "functor (" ++
- P.pp_short_module (id_of_mbid mbid) ++
+ P.pp_module mpl (MPbound mbid) ++
str ":" ++
pp_module_type mpl None mt ++
str ") ->" ++ fnl () ++