Author: zoltan
Date: 2005-03-16 08:29:41 -0500 (Wed, 16 Mar 2005)
New Revision: 41899

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/reflection.c
Log:
2005-03-16  Zoltan Varga  <[EMAIL PROTECTED]>

        * reflection.c (mono_image_get_method_info): Encode best_fit_mapping
        and throw_on_unmappable_char attributes.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-03-16 13:28:25 UTC (rev 41898)
+++ trunk/mono/mono/metadata/ChangeLog  2005-03-16 13:29:41 UTC (rev 41899)
@@ -1,3 +1,8 @@
+2005-03-16  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * reflection.c (mono_image_get_method_info): Encode best_fit_mapping
+       and throw_on_unmappable_char attributes.
+
 2005-03-13  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * process.c: Fix buffer length in ves_icall_System_Diagnostics_Process

Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c       2005-03-16 13:28:25 UTC (rev 
41898)
+++ trunk/mono/mono/metadata/reflection.c       2005-03-16 13:29:41 UTC (rev 
41899)
@@ -1379,13 +1379,15 @@
                guint32 moduleref;
                int charset = mb->charset & 0xf;
                int lasterr = mb->charset & 0x40;
+               int best_fit_mapping = mb->charset & 0x30;
+               int throw_on_unmappable = mb->charset & 0x3000;
                table = &assembly->tables [MONO_TABLE_IMPLMAP];
                table->rows ++;
                alloc_table (table, table->rows);
                values = table->values + table->rows * MONO_IMPLMAP_SIZE;
                /* map CharSet values to on-disk values */
                
-               values [MONO_IMPLMAP_FLAGS] = (mb->native_cc << 8) | (charset ? 
(charset - 1) * 2: 1) | lasterr;
+               values [MONO_IMPLMAP_FLAGS] = (mb->native_cc << 8) | (charset ? 
(charset - 1) * 2: 1) | lasterr | best_fit_mapping | throw_on_unmappable;
                values [MONO_IMPLMAP_MEMBER] = (mb->table_idx << 1) | 1; /* 
memberforwarded: method */
                name = mono_string_to_utf8 (mb->dllentry);
                values [MONO_IMPLMAP_NAME] = string_heap_insert 
(&assembly->sheap, name);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to