Author: zoltan
Date: 2005-03-16 08:27:15 -0500 (Wed, 16 Mar 2005)
New Revision: 41897
Modified:
trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
trunk/mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs
Log:
2005-03-16 Zoltan Varga <[EMAIL PROTECTED]>
* MethodBuilder.cs: Add internal BestFitMapping and
ThrowOnUnmappableChar properties used by mcs.
Modified: trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog 2005-03-16
13:25:44 UTC (rev 41896)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog 2005-03-16
13:27:15 UTC (rev 41897)
@@ -1,3 +1,8 @@
+2005-03-16 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * MethodBuilder.cs: Add internal BestFitMapping and
+ ThrowOnUnmappableChar properties used by mcs.
+
2005-03-09 Marek Safar <[EMAIL PROTECTED]>
* ILGenerator.cs (DeclareLocal): Throw an exception for null argument.
Modified: trunk/mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs
2005-03-16 13:25:44 UTC (rev 41896)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs
2005-03-16 13:27:15 UTC (rev 41897)
@@ -57,7 +57,7 @@
private MethodInfo override_method;
private string pi_dll;
private string pi_entry;
- private CharSet ncharset;
+ private CharSet ncharset; /* this also encodes set_last_error
etc */
private CallingConvention native_cc;
private CallingConventions call_conv;
private bool init_locals = true;
@@ -140,6 +140,20 @@
}
}
+ /* Used by mcs */
+ internal bool BestFitMapping {
+ set {
+ ncharset = (CharSet)(((int)ncharset & ~0x30) |
(value ? 0x10 : 0x20));
+ }
+ }
+
+ /* Used by mcs */
+ internal bool ThrowOnUnmappableChar {
+ set {
+ ncharset = (CharSet)(((int)ncharset & ~0x3000)
| (value ? 0x1000 : 0x2000));
+ }
+ }
+
public MethodToken GetToken() {
return new MethodToken(0x06000000 | table_idx);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches