Author: jbevain
Date: 2007-10-09 11:53:46 -0400 (Tue, 09 Oct 2007)
New Revision: 87175
Modified:
trunk/mcs/class/Mono.Cecil/ChangeLog
trunk/mcs/class/Mono.Cecil/Mono.Cecil/AssemblyInfo.cs
trunk/mcs/class/Mono.Cecil/Mono.Cecil/FieldDefinition.cs
Log:
2007-10-09 Jb Evain <[EMAIL PROTECTED]>
Integration of patches from Carlo Kok <[EMAIL PROTECTED]>:
* Mono.Cecil/FieldDefinition.cs:
Clean or set the HasFieldMarshal flag when setting
MarshalSpecs on fields.
Modified: trunk/mcs/class/Mono.Cecil/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Cecil/ChangeLog 2007-10-09 15:46:36 UTC (rev
87174)
+++ trunk/mcs/class/Mono.Cecil/ChangeLog 2007-10-09 15:53:46 UTC (rev
87175)
@@ -2,6 +2,10 @@
Integration of patches from Carlo Kok <[EMAIL PROTECTED]>:
+ * Mono.Cecil/FieldDefinition.cs:
+ Clean or set the HasFieldMarshal flag when setting
+ MarshalSpecs on fields.
+
* Mono.Cecil/GenericInstanceType.cs:
Properly initialize the IsValueType from the element type.
Modified: trunk/mcs/class/Mono.Cecil/Mono.Cecil/AssemblyInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Cecil/Mono.Cecil/AssemblyInfo.cs 2007-10-09
15:46:36 UTC (rev 87174)
+++ trunk/mcs/class/Mono.Cecil/Mono.Cecil/AssemblyInfo.cs 2007-10-09
15:53:46 UTC (rev 87175)
@@ -43,7 +43,7 @@
[assembly: CLSCompliant (false)]
[assembly: ComVisible (false)]
-[assembly: AssemblyVersion ("0.6.8.7173")]
+[assembly: AssemblyVersion ("0.6.8.7175")]
#if KEYFILE
[assembly: AssemblyKeyFile("../../mono.snk")]
Modified: trunk/mcs/class/Mono.Cecil/Mono.Cecil/FieldDefinition.cs
===================================================================
--- trunk/mcs/class/Mono.Cecil/Mono.Cecil/FieldDefinition.cs 2007-10-09
15:46:36 UTC (rev 87174)
+++ trunk/mcs/class/Mono.Cecil/Mono.Cecil/FieldDefinition.cs 2007-10-09
15:53:46 UTC (rev 87175)
@@ -99,7 +99,13 @@
public MarshalSpec MarshalSpec {
get { return m_marshalDesc; }
- set { m_marshalDesc = value; }
+ set {
+ m_marshalDesc = value;
+ if (value != null)
+ m_attributes |=
FieldAttributes.HasFieldMarshal;
+ else
+ m_attributes &=
FieldAttributes.HasFieldMarshal;
+ }
}
#region FieldAttributes
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches