aboutsummaryrefslogtreecommitdiff
path: root/contrib/xml
diff options
context:
space:
mode:
authorcoq2002-10-05 11:03:20 +0000
committercoq2002-10-05 11:03:20 +0000
commit1e485645ef6481a856e8a67477f186519fb8ec9d (patch)
treefe06414569b65ae325c474f55e831fe228a0c23c /contrib/xml
parentdfb48b895bb114e6eb49840d960268e18f8aaf0c (diff)
Lazy experimentale temporaire...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3091 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/xml')
-rw-r--r--contrib/xml/xmlcommand.ml48
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/xml/xmlcommand.ml4 b/contrib/xml/xmlcommand.ml4
index 14d0f94ac0..8710a9e1fa 100644
--- a/contrib/xml/xmlcommand.ml4
+++ b/contrib/xml/xmlcommand.ml4
@@ -739,7 +739,9 @@ let print (_,qid as locqid) fn =
begin
match val0 with
None -> print_axiom id typ [] hyps env inner_types
- | Some c -> print_definition id c typ [] hyps env inner_types
+ | Some lc ->
+ let c = Lazy.force_val lc in
+ print_definition id c typ [] hyps env inner_types
end
| Ln.IndRef (kn,_) ->
let sp = Nt.sp_of_global None (Ln.IndRef(kn,0)) in
@@ -856,7 +858,9 @@ let print_object lobj id (sp,kn) dn fv env =
begin
match val0 with
None -> print_axiom id typ fv hyps env inner_types
- | Some c -> print_definition id c typ fv hyps env inner_types
+ | Some lc ->
+ let c = Lazy.force_val lc in
+ print_definition id c typ fv hyps env inner_types
end
| "INDUCTIVE" ->
let