aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/correctness
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-08-14 13:25:53 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-08-14 13:25:53 +0000
commit8595888095feba842ebe880a91edbad170b0023a (patch)
tree6af7136da1a84ecfdaeee453bc8ce9f15c838e46 /contrib/correctness
parent9f7c47de0c95be43ac1a49c72eda3c5e5a2777a5 (diff)
code mort
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4274 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness')
-rw-r--r--contrib/correctness/ptactic.ml38
1 files changed, 1 insertions, 37 deletions
diff --git a/contrib/correctness/ptactic.ml b/contrib/correctness/ptactic.ml
index dc7059413..eb1d6b9a7 100644
--- a/contrib/correctness/ptactic.ml
+++ b/contrib/correctness/ptactic.ml
@@ -228,6 +228,7 @@ let register id n =
let id' = match n with None -> id | Some id' -> id' in
Penv.register id id'
+ (* On dit à la commande "Save" d'enregistrer les nouveaux programmes *)
let correctness_hook _ ref =
let pf_id = Nametab.id_of_global ref in
register pf_id None
@@ -255,40 +256,3 @@ let correctness s p opttac =
in
solve_nth 1 tac;
if_verbose show_open_subgoals ()
-
-
-(* On redéfinit la commande "Save" pour enregistrer les nouveaux programmes *)
-(*
-open Vernacinterp
-
-let add = Vernacinterp.overwriting_vinterp_add
-
-let _ =
- let current_save = Vernacinterp.vinterp_map "SaveNamed" in
- add "SaveNamed"
- (function [] -> (fun () -> let pf_id = Pfedit.get_current_proof_name () in
- current_save [] ();
- register pf_id None)
- | _ -> assert false)
-
-let _ =
- let current_defined = Vernacinterp.vinterp_map "DefinedNamed" in
- add "DefinedNamed"
- (function [] -> (fun () -> let pf_id = Pfedit.get_current_proof_name () in
- current_defined [] ();
- register pf_id None)
- | _ -> assert false)
-
-let _ =
- let current_saveanonymous = Vernacinterp.vinterp_map "SaveAnonymous" in
- add "SaveAnonymous"
- (function l ->
- (fun () ->
- let id = match l with
- [VARG_IDENTIFIER id] -> id
- | [_;VARG_IDENTIFIER id] -> id
- | _ -> assert false in
- let pf_id = Pfedit.get_current_proof_name () in
- current_saveanonymous l ();
- register pf_id (Some id)))
-*)