diff options
author | 2008-07-18 15:58:12 +0000 | |
---|---|---|
committer | 2008-07-18 15:58:12 +0000 | |
commit | d6f4f3f3dc92d805bc046bcdbc30dd7df65fb4aa (patch) | |
tree | 589b400e1a0416b49150ae669ea0ff6cfacbd605 /contrib/subtac/subtac.ml | |
parent | ccff0b020b3a0950a6358846b6a40b8cd7a96562 (diff) |
Rétablissement de l'option -dump-glob de coq top et de l'option -glob-from de coqdoc (compatibilité)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11236 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/subtac/subtac.ml')
-rw-r--r-- | contrib/subtac/subtac.ml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/subtac/subtac.ml b/contrib/subtac/subtac.ml index 71aa7e99e..fbb4589b8 100644 --- a/contrib/subtac/subtac.ml +++ b/contrib/subtac/subtac.ml @@ -120,7 +120,7 @@ let dump_variable lid = () let vernac_assumption env isevars kind l nl = let global = fst kind = Global in List.iter (fun (is_coe,(idl,c)) -> - if !Flags.dump then + if Dumpglob.dump () then List.iter (fun lid -> if global then dump_definition lid "ax" else dump_variable lid) idl; @@ -140,7 +140,7 @@ let subtac (loc, command) = match command with | VernacDefinition (defkind, (_, id as lid), expr, hook) -> check_fresh lid; - dump_definition lid "def"; + if Dumpglob.dump () then dump_definition lid "def"; (match expr with | ProveBody (bl, t) -> if Lib.is_modtype () then @@ -153,12 +153,12 @@ let subtac (loc, command) = | VernacFixpoint (l, b) -> List.iter (fun ((lid, _, _, _, _), _) -> check_fresh lid; - dump_definition lid "fix") l; + if Dumpglob.dump () then dump_definition lid "fix") l; let _ = trace (str "Building fixpoint") in ignore(Subtac_command.build_recursive l b) | VernacStartTheoremProof (thkind, [Some id, (bl, t)], lettop, hook) -> - if !Flags.dump then dump_definition id "prf"; + if Dumpglob.dump () then dump_definition id "prf"; if not(Pfedit.refining ()) then if lettop then errorlabstrm "Subtac_command.StartProof" @@ -173,11 +173,12 @@ let subtac (loc, command) = vernac_assumption env isevars stre l nl | VernacInstance (glob, sup, is, props, pri) -> - if !Flags.dump then dump_constraint "inst" is; + if Dumpglob.dump () then dump_constraint "inst" is; ignore(Subtac_classes.new_instance ~global:glob sup is props pri) | VernacCoFixpoint (l, b) -> - List.iter (fun ((lid, _, _, _), _) -> dump_definition lid "cofix") l; + if Dumpglob.dump () then + List.iter (fun ((lid, _, _, _), _) -> dump_definition lid "cofix") l; ignore(Subtac_command.build_corecursive l b) (*| VernacEndProof e -> |