Author: atsushi
Date: 2005-04-22 13:12:10 -0400 (Fri, 22 Apr 2005)
New Revision: 43451

Modified:
   trunk/mono/mono/dis/ChangeLog
   trunk/mono/mono/dis/get.c
Log:
2005-04-22  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * get.c : arraytype[,] should not be wrapped as 'arraytype[]'.



Modified: trunk/mono/mono/dis/ChangeLog
===================================================================
--- trunk/mono/mono/dis/ChangeLog       2005-04-22 16:09:16 UTC (rev 43450)
+++ trunk/mono/mono/dis/ChangeLog       2005-04-22 17:12:10 UTC (rev 43451)
@@ -1,3 +1,7 @@
+2005-04-22  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * get.c : arraytype[,] should not be wrapped as 'arraytype[]'.
+
 2005-04-20  Ankit Jain  <[EMAIL PROTECTED]>
 
        Fix #74521.

Modified: trunk/mono/mono/dis/get.c
===================================================================
--- trunk/mono/mono/dis/get.c   2005-04-22 16:09:16 UTC (rev 43450)
+++ trunk/mono/mono/dis/get.c   2005-04-22 17:12:10 UTC (rev 43451)
@@ -1291,6 +1291,7 @@
 get_escaped_name (const char *name)
 {
        const char *s;
+       char *tmp, *tmp2;
 
        g_assert (key_table);
 
@@ -1315,6 +1316,12 @@
                    *s == '?' || *s == '.' || *s == 0 || *s == '!')
                        continue;
 
+               if (*s == '[') {
+                       tmp = g_strndup (name, s - name);
+                       tmp2 = g_strjoin ("", "'", tmp, "'", s);
+                       g_free (tmp);
+                       return tmp2;
+               }
                return g_strdup_printf ("'%s'", name);
        }
        

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

Reply via email to