diff options
| author | herbelin | 2009-08-06 19:00:11 +0000 |
|---|---|---|
| committer | herbelin | 2009-08-06 19:00:11 +0000 |
| commit | ffa57bae1e18fd52d63e8512a352ac63db15a7a9 (patch) | |
| tree | 6cf537ce557f14f71ee3693d98dc20c12b64a9e4 /tactics/auto.ml | |
| parent | da7fb3e13166747b49cdf1ecfad394ecb4e0404a (diff) | |
- Cleaning phase of the interfaces of libnames.ml and nametab.ml
(uniformisation of function names, classification). One of the most
visible change is the renaming of section_path into full_path (the
use of name section was obsolete due to the module system, but I
don't know if the new name is the best chosen one - especially it
remains some "sp" here and there).
- Simplification of the interface of classify_object (first argument dropped).
- Simplification of the code for vernac keyword "End".
- Other small cleaning or dead code removal.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12265 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/auto.ml')
| -rw-r--r-- | tactics/auto.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml index 7417535217..b998daa742 100644 --- a/tactics/auto.ml +++ b/tactics/auto.ml @@ -446,7 +446,7 @@ let subst_autohint (_,subst,(local,name,hintlist as obj)) = if hintlist' == hintlist then obj else (local,name,AddTactic hintlist') -let classify_autohint (_,((local,name,hintlist) as obj)) = +let classify_autohint ((local,name,hintlist) as obj) = if local or hintlist = (AddTactic []) then Dispose else Substitute obj let export_autohint ((local,name,hintlist) as obj) = @@ -548,7 +548,7 @@ let interp_hints h = HintsTransparencyEntry (List.map fr lhints, b) | HintsConstructors lqid -> let constr_hints_of_ind qid = - let isp = inductive_of_reference qid in + let isp = global_inductive qid in let consnames = (snd (Global.lookup_inductive isp)).mind_consnames in list_tabulate (fun i -> None, true, mkConstruct (isp,i+1)) (Array.length consnames) in @@ -1121,7 +1121,7 @@ let superauto n to_add argl = let interp_to_add gl r = let r = Syntax_def.locate_global_with_alias (qualid_of_reference r) in - let id = id_of_global r in + let id = basename_of_global r in (next_ident_away id (pf_ids_of_hyps gl), constr_of_global r) let gen_superauto nopt l a b gl = |
