diff options
| author | sacerdot | 2004-04-01 14:32:24 +0000 |
|---|---|---|
| committer | sacerdot | 2004-04-01 14:32:24 +0000 |
| commit | c8002490d96fbc6903c13617dfbdff1dd599b78c (patch) | |
| tree | 78b1cbb0e9167c87f50e75c6d1d2252b601570cb /contrib/xml/xmlcommand.ml | |
| parent | 52b50d23de4fe09ccd8b00724e048927a8100388 (diff) | |
~keep_sections was now redundant. Got rid of.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5627 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/xml/xmlcommand.ml')
| -rw-r--r-- | contrib/xml/xmlcommand.ml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/xml/xmlcommand.ml b/contrib/xml/xmlcommand.ml index 5743a0bf22..a6d744ba4d 100644 --- a/contrib/xml/xmlcommand.ml +++ b/contrib/xml/xmlcommand.ml @@ -182,12 +182,12 @@ let rec join_dirs cwd = join_dirs newcwd tail ;; -let filename_of_path ?(keep_sections=false) xml_library_root kn tag = +let filename_of_path xml_library_root kn tag = let module N = Names in match xml_library_root with None -> None (* stdout *) | Some xml_library_root' -> - let tokens = Cic2acic.token_list_of_kernel_name ~keep_sections kn tag in + let tokens = Cic2acic.token_list_of_kernel_name kn tag in Some (join_dirs xml_library_root' tokens) ;; @@ -512,7 +512,7 @@ let print internal glob_ref kind xml_library_root = let module Ln = Libnames in (* Variables are the identifiers of the variables in scope *) let variables = search_variables () in - let keep_sections,kn,tag,obj = + let kn,tag,obj = match glob_ref with Ln.VarRef id -> let sp = Declare.find_section_variable id in @@ -522,23 +522,23 @@ let print internal glob_ref kind xml_library_root = N.make_kn mod_path dir_path (N.label_of_id (Ln.basename sp)) in let (_,body,typ) = G.lookup_named id in - true,kn,Cic2acic.Variable,mk_variable_obj id body typ + kn,Cic2acic.Variable,mk_variable_obj id body typ | Ln.ConstRef kn -> let id = N.id_of_label (N.label kn) in let {D.const_body=val0 ; D.const_type = typ ; D.const_hyps = hyps} = G.lookup_constant kn in - false,kn,Cic2acic.Constant,mk_constant_obj id val0 typ variables hyps + kn,Cic2acic.Constant,mk_constant_obj id val0 typ variables hyps | Ln.IndRef (kn,_) -> let {D.mind_packets=packs ; D.mind_hyps=hyps; D.mind_finite=finite} = G.lookup_mind kn in - false,kn,Cic2acic.Inductive, + kn,Cic2acic.Inductive, mk_inductive_obj kn packs variables hyps finite | Ln.ConstructRef _ -> Util.anomaly ("print: this should not happen") 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 + let fn = filename_of_path xml_library_root kn tag in + let uri = Cic2acic.uri_of_kernel_name kn tag in if not internal then print_object_kind uri kind; print_object uri obj Evd.empty None fn ;; |
