aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorherbelin2004-03-31 09:43:55 +0000
committerherbelin2004-03-31 09:43:55 +0000
commit4c055560eca4147aafaf728bbc8d25f06c765f3f (patch)
tree0ea75dd4658f4c60d0cc7514528efd4d069053ec /library
parent13928db651b2edb15bd3a251c49428edb42a3ba1 (diff)
Export de l'information si un inductive est un record ou non (pour xml)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5622 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r--library/declare.ml4
-rw-r--r--library/declare.mli6
2 files changed, 5 insertions, 5 deletions
diff --git a/library/declare.ml b/library/declare.ml
index 307c838652..398fed7042 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -303,10 +303,10 @@ let declare_inductive_common mie =
oname
(* for initial declaration *)
-let declare_mind mie =
+let declare_mind isrecord mie =
let (sp,kn as oname) = declare_inductive_common mie in
Dischargedhypsmap.set_discharged_hyps sp [] ;
- !xml_declare_inductive oname;
+ !xml_declare_inductive (isrecord,oname);
oname
(* when coming from discharge: no xml output *)
diff --git a/library/declare.mli b/library/declare.mli
index 9b268e7aea..85162c04c6 100644
--- a/library/declare.mli
+++ b/library/declare.mli
@@ -63,8 +63,8 @@ val redeclare_constant :
(* [declare_mind me] declares a block of inductive types with
their constructors in the current section; it returns the path of
- the whole block *)
-val declare_mind : mutual_inductive_entry -> object_name
+ the whole block (boolean must be true iff it is a record) *)
+val declare_mind : bool -> mutual_inductive_entry -> object_name
(* Declaration from Discharge *)
val redeclare_inductive :
@@ -99,4 +99,4 @@ val strength_of_global : global_reference -> strength
(* hooks for XML output *)
val set_xml_declare_variable : (object_name -> unit) -> unit
val set_xml_declare_constant : (bool * object_name -> unit) -> unit
-val set_xml_declare_inductive : (object_name -> unit) -> unit
+val set_xml_declare_inductive : (bool * object_name -> unit) -> unit