aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorherbelin2000-11-20 08:49:35 +0000
committerherbelin2000-11-20 08:49:35 +0000
commit2607f689969425194b9732fc88b99fb70436acb6 (patch)
treef5daba6efb174e96b8573b432a9580de6460b88f /tactics
parentd4a16b8b5bf14d8dc3e78710aa4c7d3d471cc1a4 (diff)
Utilisation de global_reference dans pattern
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@876 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/termdn.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/tactics/termdn.ml b/tactics/termdn.ml
index 481bd3ac40..4f3ea75221 100644
--- a/tactics/termdn.ml
+++ b/tactics/termdn.ml
@@ -35,9 +35,9 @@ let constr_pat_discr t =
None
else
match decomp_pat t with
- | PRef (RInd (ind_sp,_)), args -> Some(IndNode ind_sp,args)
- | PRef (RConstruct (cstr_sp,_)), args -> Some(CstrNode cstr_sp,args)
- | PRef (RVar id), args -> Some(VarNode id,args)
+ | PRef (IndRef sp), args -> Some(IndNode sp,args)
+ | PRef (ConstructRef sp), args -> Some(CstrNode sp,args)
+ | PRef (VarRef sp), args -> Some(VarNode (basename sp),args)
| _ -> None
let constr_val_discr t =
@@ -46,6 +46,7 @@ let constr_val_discr t =
(* IsConst _,_) -> Some(TERM c,l) *)
| IsMutInd (ind_sp,_) -> Some(IndNode ind_sp,l)
| IsMutConstruct (cstr_sp,_) -> Some(CstrNode cstr_sp,l)
+ (* Ici, comment distinguer SectionVarNode de VarNode ?? *)
| IsVar id -> Some(VarNode id,l)
| _ -> None