summaryrefslogtreecommitdiff
path: root/pretyping/recordops.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2009-07-04 13:28:38 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2009-07-04 13:28:38 +0200
commit3a420f4ad929e8372d32c735fd0fd89dfc0346a1 (patch)
tree943a01d103c1296dc7c07cb188af994354c4d9a3 /pretyping/recordops.ml
parent1769cbaddea77112dd6f336316d8eb9a0945a1e6 (diff)
parente4282ea99c664d8d58067bee199cbbcf881b60d5 (diff)
Merge commit 'upstream/8.2.pl1+dfsg'
Diffstat (limited to 'pretyping/recordops.ml')
-rw-r--r--pretyping/recordops.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/pretyping/recordops.ml b/pretyping/recordops.ml
index 7c4023b9..711f332e 100644
--- a/pretyping/recordops.ml
+++ b/pretyping/recordops.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: recordops.ml 11576 2008-11-10 19:13:15Z msozeau $ *)
+(* $Id: recordops.ml 12187 2009-06-13 19:36:59Z msozeau $ *)
open Util
open Pp
@@ -65,8 +65,11 @@ let subst_structure (_,subst,((kn,i),id,kl,projs as obj)) =
if projs' == projs && kn' == kn && id' == id then obj else
((kn',i),id',kl,projs')
+let discharge_constructor (ind, n) =
+ (Lib.discharge_inductive ind, n)
+
let discharge_structure (_,(ind,id,kl,projs)) =
- Some (Lib.discharge_inductive ind, id, kl,
+ Some (Lib.discharge_inductive ind, discharge_constructor id, kl,
List.map (Option.map Lib.discharge_con) projs)
let (inStruc,outStruc) =