CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnet
Changes by:     Klaus Treichel <ktreichel>      09/04/02 17:44:03

Modified files:
        .              : ChangeLog 
        ilasm          : ilasm_grammar.y 

Log message:
        Convert a primitive type to a typedef or typeref instead of a typespec 
in the
        TypeSpecification rule. (Thanks Ettore Speziale)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3612&r2=1.3613
http://cvs.savannah.gnu.org/viewcvs/pnet/ilasm/ilasm_grammar.y?cvsroot=dotgnu-pnet&r1=1.54&r2=1.55

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3612
retrieving revision 1.3613
diff -u -b -r1.3612 -r1.3613
--- ChangeLog   31 Mar 2009 09:04:31 -0000      1.3612
+++ ChangeLog   2 Apr 2009 17:44:03 -0000       1.3613
@@ -1,3 +1,8 @@
+2009-04-02  Klaus Treichel  <[email protected]>
+
+       * ilasm/ilasm_grammar.y (TypeSpecification): Convert a primitive type to
+       a typedef or typeref instead of a typespec (Thanks, Ettore Speziale).
+
 2009-03-31  Heiko Weiss <[email protected]>
 
        * engine/lib_thread.c: check for thread is NULL.

Index: ilasm/ilasm_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilasm/ilasm_grammar.y,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- ilasm/ilasm_grammar.y       16 Mar 2009 19:50:30 -0000      1.54
+++ ilasm/ilasm_grammar.y       2 Apr 2009 17:44:03 -0000       1.55
@@ -3084,7 +3084,12 @@
        | Type                                                          {
                                /* Convert a type into a TypeSpec token of some 
kind */
                                $$.type = $1;
-                               if(ILType_IsClass($1) || ILType_IsValueType($1))
+                               if(ILType_IsPrimitive($1))
+                               {
+                                       /* Convert a primitive type to a 
typedef or typeref */
+                                       $$.item = 
ILToProgramItem(ILClassFromType(ILAsmImage, 0, $1, 0));
+                               }
+                               else if(ILType_IsClass($1) || 
ILType_IsValueType($1))
                                {
                                        /* Simple class reference */
                                        $$.item = 
ILToProgramItem(ILType_ToClass($1));


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to