dotgnu-pnet-commits
[Top][All Lists]
Advanced

[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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]