aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing/printmod.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-02-26 18:52:05 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-02-26 18:52:05 +0000
commit7dd28b4772251af6ae3641ec63a8251153915e21 (patch)
treed11220b4ff19473215d77e9738d2a4eb58bf681d /printing/printmod.ml
parent2b09b02c136d3d68fa19e4493d5b5ad28c4f16db (diff)
Names: shortcuts for building {kn, constant, mind} with empty sections
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16249 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing/printmod.ml')
-rw-r--r--printing/printmod.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/printmod.ml b/printing/printmod.ml
index 0b8393d52..07a5d954c 100644
--- a/printing/printmod.ml
+++ b/printing/printmod.ml
@@ -90,9 +90,9 @@ let nametab_register_body mp fp (l,body) =
| SFBmodule _ -> () (* TODO *)
| SFBmodtype _ -> () (* TODO *)
| SFBconst _ ->
- push (Label.to_id l) (ConstRef (make_con mp DirPath.empty l))
+ push (Label.to_id l) (ConstRef (Constant.make2 mp l))
| SFBmind mib ->
- let mind = make_mind mp DirPath.empty l in
+ let mind = MutInd.make2 mp l in
Array.iteri
(fun i mip ->
push mip.mind_typename (IndRef (mind,i));
@@ -126,7 +126,7 @@ let print_body is_impl env mp (l,body) =
| SFBmind mib ->
try
let env = Option.get env in
- Printer.pr_mutual_inductive_body env (make_mind mp DirPath.empty l) mib
+ Printer.pr_mutual_inductive_body env (MutInd.make2 mp l) mib
with _ ->
(if mib.mind_finite then str "Inductive " else str "CoInductive")
++ name)