From b5657ff1939c6872ee3ccaeaf180a2f3da9e1876 Mon Sep 17 00:00:00 2001 From: sacerdot Date: Fri, 14 Jan 2005 14:30:06 +0000 Subject: Inductive.{type_of_inductive,type_of_constructor,arities_of_specif} changed to accept a mind_specif (a couple mutual_inductive_body * one_inductive_body) instead of looking it up in the environment. A version of the same functions with the old type is put in Inductiveops (outside the kernel). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6589 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/typeops.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel/typeops.ml') diff --git a/kernel/typeops.ml b/kernel/typeops.ml index 05b7619e52..1a3dd19f88 100644 --- a/kernel/typeops.ml +++ b/kernel/typeops.ml @@ -252,7 +252,8 @@ let judge_of_inductive env i = let (kn,_) = i in let mib = lookup_mind kn env in check_args env constr mib.mind_hyps in - make_judge constr (type_of_inductive env i) + let specif = lookup_mind_specif env i in + make_judge constr (type_of_inductive specif) (* let toikey = Profile.declare_profile "judge_of_inductive";; @@ -268,7 +269,8 @@ let judge_of_constructor env c = let ((kn,_),_) = c in let mib = lookup_mind kn env in check_args env constr mib.mind_hyps in - make_judge constr (type_of_constructor env c) + let specif = lookup_mind_specif env (inductive_of_constructor c) in + make_judge constr (type_of_constructor c specif) (* let tockey = Profile.declare_profile "judge_of_constructor";; -- cgit v1.2.3