dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_types.c,1.37,1.38


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/c c_types.c,1.37,1.38
Date: Tue, 12 Aug 2003 03:22:03 -0400

Update of /cvsroot/dotgnu-pnet/pnet/cscc/c
In directory subversions:/tmp/cvs-serv14497/cscc/c

Modified Files:
        c_types.c 
Log Message:


CTypeDefineField: allow "long double" to be used inside non-native
struct's and union's, even though it is a native type.


Index: c_types.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_types.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** c_types.c   11 Aug 2003 06:55:04 -0000      1.37
--- c_types.c   12 Aug 2003 07:22:01 -0000      1.38
***************
*** 768,774 ****
        if(layout)
        {
!               if(size == CTYPE_DYNAMIC || size == CTYPE_UNKNOWN)
                {
                        return 0;
                }
        }
--- 768,787 ----
        if(layout)
        {
!               if(size == CTYPE_UNKNOWN)
                {
                        return 0;
+               }
+               if(size == CTYPE_DYNAMIC)
+               {
+                       /* Special case: allow "long double" to be used inside
+                          struct's and union's, even though it is a dynamic 
type */
+                       if(ILTypeStripPrefixes(fieldType) == ILType_Float)
+                       {
+                               size = align;
+                       }
+                       else
+                       {
+                               return 0;
+                       }
                }
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]