[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/image ser_parse.c,1.8,1.9
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/image ser_parse.c,1.8,1.9 |
Date: |
Thu, 22 May 2003 22:06:13 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv10571/image
Modified Files:
ser_parse.c
Log Message:
ILSerializeGetType: assume that an unresolved value type is an enumerated
type value, to process attributes when IL_LOADFLAG_NO_RESOLVE is set.
Index: ser_parse.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/ser_parse.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** ser_parse.c 4 May 2003 21:34:10 -0000 1.8
--- ser_parse.c 23 May 2003 02:06:11 -0000 1.9
***************
*** 85,88 ****
--- 85,98 ----
type = ILTypeGetEnumType(type);
+ /* If the type is an unresolved reference value type, then
+ assume that it is an integer-based enumerated type. This
+ is needed to parse attributes across assembly boundaries
+ when "IL_LOADFLAG_NO_RESOLVE" is set */
+ if(ILType_IsValueType(type) &&
+ ILClassIsRef(ILClassResolve(ILType_ToValueType(type))))
+ {
+ return IL_META_SERIALTYPE_I4;
+ }
+
/* Determine how to serialize the value */
if(ILType_IsPrimitive(type))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/image ser_parse.c,1.8,1.9,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/Basic File.cs,NONE,1.1 FileSystem.cs,1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2369,1.2370
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/Basic File.cs,NONE,1.1 FileSystem.cs,1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2369,1.2370
- Index(es):