Items with size 0

Gregg Mattinson gm138242 at scot.canada.sun.com
Fri Jul 12 13:01:00 CDT 2002


Resubmitting, with the small change recommended by Dmitry.

ChangeLog: dlls/ddraw/ddraw/user.h dlls/ddraw/dsurface/fakezbuffer.h
           include/ntddk.h tools/winedump/cvinclude.h
 - Forte C doesn't allow structures or arrays of size 0, so they have been 
fixed.

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

>From: "Dmitry Timoshkov" <dmitry at baikal.ru>
>Subject: Re: Items with size 0
>Date: Sat, 13 Jul 2002 00:02:47 +0900
>
>"Gregg Mattinson" <gm138242 at scot.canada.sun.com> wrote:
>> +#ifndef __SUNPRO_C
>>          THREADINFO ti[0];
>> +#endif
>>  } SYSTEM_PROCESS_INFORMATION;
>
>At least this one can be replaced by [1] for now, since it currently
>is not used in Wine and according to the Nebbett's book has very
>different layout.
>
>-- 
>Dmitry.
-------------- next part --------------
Index: dlls/ddraw/ddraw/user.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/ddraw/ddraw/user.h,v
retrieving revision 1.1
diff -u -r1.1 user.h
--- /tmp/T01KayyW	Thu Jul 11 14:22:39 2002
+++ user.h	Mon Jun 24 16:36:08 2002
@@ -25,6 +25,7 @@
 
 typedef struct
 {
+    int empty;
     /* empty */
 } User_DirectDrawImpl_Part;
 
Index: dlls/ddraw/dsurface/fakezbuffer.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/ddraw/dsurface/fakezbuffer.h,v
retrieving revision 1.1
diff -u -r1.1 fakezbuffer.h
--- /tmp/T0y1aWyW	Thu Jul 11 14:22:41 2002
+++ fakezbuffer.h	Mon Jun 24 16:37:28 2002
@@ -21,6 +21,7 @@
 
 struct FakeZBuffer_DirectDrawSurfaceImpl_Part
 {
+  int dummy;
 };
 
 typedef struct
Index: include/ntddk.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/include/ntddk.h,v
retrieving revision 1.1
diff -u -r1.1 ntddk.h
--- /tmp/T0M3a4IX       Fri Jul 12 13:58:03 2002
+++ ntddk.h     Fri Jul 12 13:55:53 2002
@@ -334,7 +334,7 @@
         DWORD dwPrivateBytes;
         DWORD dwPageFileBytes;
         DWORD dwUnknown7[4];
-        THREADINFO ti[0];
+        THREADINFO ti[1];
 } SYSTEM_PROCESS_INFORMATION;
 
 typedef struct {
Index: tools/winedump/cvinclude.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/tools/winedump/cvinclude.h,v
retrieving revision 1.1
diff -u -r1.1 cvinclude.h
--- /tmp/T0d.a4RW	Thu Jul 11 14:24:23 2002
+++ cvinclude.h	Tue Jun 25 15:23:54 2002
@@ -154,7 +154,9 @@
 {
     unsigned short  cSeg;
     unsigned short  cSegLog;
+#ifndef __SUNPRO_C
     OMFSegMapDesc   rgDesc[0];
+#endif
 } OMFSegMap;
 
 


More information about the wine-patches mailing list