diff options
author | 2004-03-30 11:00:04 +0000 | |
---|---|---|
committer | 2004-03-30 11:00:04 +0000 | |
commit | f5e8da3bbf50e7a826398a05ba7c5cfafe667a6e (patch) | |
tree | c9b90cac2d4155763e413a518f729032f1c60f71 /contrib | |
parent | d7a64f8b6efd748625c8eb9aa2aef08ca618e5c6 (diff) |
Distinction entre declarations internes (p.ex. _subproof) et declarations utilisateurs pour export xml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5609 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/xml/xmlcommand.ml | 12 | ||||
-rw-r--r-- | contrib/xml/xmlcommand.mli | 2 | ||||
-rw-r--r-- | contrib/xml/xmlentries.ml4 | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/contrib/xml/xmlcommand.ml b/contrib/xml/xmlcommand.ml index b120a95bc..6ac022c2d 100644 --- a/contrib/xml/xmlcommand.ml +++ b/contrib/xml/xmlcommand.ml @@ -488,7 +488,7 @@ let print_object_kind uri (xmltag,variation) = (* Note: it is printed only (and directly) the most cooked available *) (* form of the definition (all the parameters are *) (* lambda-abstracted, but the object can still refer to variables) *) -let print glob_ref xml_library_root = +let print internal glob_ref xml_library_root = let module D = Declarations in let module De = Declare in let module G = Global in @@ -526,7 +526,7 @@ let print glob_ref xml_library_root = in let fn = filename_of_path ~keep_sections xml_library_root kn tag in let uri = Cic2acic.uri_of_kernel_name ~keep_sections kn tag in - print_object_kind uri (kind_of_object glob_ref); + if not internal then print_object_kind uri (kind_of_object glob_ref); print_object uri obj Evd.empty None fn ;; @@ -847,15 +847,15 @@ let _ = let _ = Declare.set_xml_declare_variable (function (sp,kn) -> - print (Libnames.VarRef (Libnames.basename sp)) xml_library_root) + print false (Libnames.VarRef (Libnames.basename sp)) xml_library_root) ;; let _ = Declare.set_xml_declare_constant - (function (sp,kn) -> + (function (internal,(sp,kn)) -> match !proof_to_export with None -> - print (Libnames.ConstRef kn) xml_library_root + print internal (Libnames.ConstRef kn) xml_library_root | Some pftreestate -> (* It is a proof. Let's export it starting from the proof-tree *) (* I saved in the Pfedit.set_xml_cook_proof callback. *) @@ -868,7 +868,7 @@ let _ = let _ = Declare.set_xml_declare_inductive (function (sp,kn) -> - print (Libnames.IndRef (kn,0)) xml_library_root) + print false (Libnames.IndRef (kn,0)) xml_library_root) ;; let _ = diff --git a/contrib/xml/xmlcommand.mli b/contrib/xml/xmlcommand.mli index ed3713ff7..535bb915a 100644 --- a/contrib/xml/xmlcommand.mli +++ b/contrib/xml/xmlcommand.mli @@ -28,7 +28,7 @@ (* Note: it is printed only (and directly) the most discharged available *) (* form of the definition (all the parameters are *) (* lambda-abstracted, but the object can still refer to variables) *) -val print : Libnames.global_reference -> string option -> unit +val print : bool -> Libnames.global_reference -> string option -> unit (* show dest *) (* where dest is either None (for stdout) or (Some filename) *) diff --git a/contrib/xml/xmlentries.ml4 b/contrib/xml/xmlentries.ml4 index 267e45a83..27ae9fc37 100644 --- a/contrib/xml/xmlentries.ml4 +++ b/contrib/xml/xmlentries.ml4 @@ -39,7 +39,7 @@ END (* Print XML and Show XML *) -let print_global r fn = Xmlcommand.print (Nametab.global r) fn +let print_global r fn = Xmlcommand.print false (Nametab.global r) fn VERNAC COMMAND EXTEND Xml | [ "Print" "XML" filename(fn) global(qid) ] -> [ print_global qid fn ] |