Commit in reactos on MAIN
lib/oleaut32/Makefile.in+1-11.4 -> 1.5
            /variant.c+1-11.9 -> 1.10
w32api/include/oaidl.h+1-11.6 -> 1.7
              /oleauto.h+5-51.10 -> 1.11
              /wtypes.h+14-51.4 -> 1.5
+22-13
5 modified files
fix NAMELESSUNION support for struct DECIMAL

reactos/lib/oleaut32
Makefile.in 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- Makefile.in	1 Mar 2004 22:57:20 -0000	1.4
+++ Makefile.in	2 Mar 2004 10:25:58 -0000	1.5
@@ -17,8 +17,8 @@
 	hash.c \
 	oleaut.c \
 	olepicture.c \
-	stubs.c \
 	safearray.c \
+	stubs.c \
 	varformat.c \
 	variant.c \
 	vartype.c

reactos/lib/oleaut32
variant.c 1.9 -> 1.10
diff -u -r1.9 -r1.10
--- variant.c	1 Mar 2004 22:57:20 -0000	1.9
+++ variant.c	2 Mar 2004 10:25:58 -0000	1.10
@@ -2204,7 +2204,7 @@
     ULONG64 tmp;
     DECIMAL* pDec = &V_DECIMAL(pVarDst);
 
-    DECIMAL_SETZERO(pDec);
+    DECIMAL_SETZERO(*pDec);
     DEC_LO32(pDec) = 0;
 
     if (pNumprs->dwOutFlags & NUMPRS_NEG)

reactos/w32api/include
oaidl.h 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- oaidl.h	29 Feb 2004 15:36:10 -0000	1.6
+++ oaidl.h	2 Mar 2004 10:25:59 -0000	1.7
@@ -7,7 +7,7 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-#ifdef NONAMELESSUNION
+#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
 #define __VARIANT_NAME_1 n1
 #define __VARIANT_NAME_2 n2
 #define __VARIANT_NAME_3 n3

reactos/w32api/include
oleauto.h 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- oleauto.h	1 Mar 2004 22:12:56 -0000	1.10
+++ oleauto.h	2 Mar 2004 10:25:59 -0000	1.11
@@ -22,7 +22,7 @@
 #define VAR_FORMAT_NOSUBSTITUTE 0x0020
 #define VAR_FOURDIGITYEARS 0x0040
 #define VAR_CALENDAR_THAI 0x0080
-#define	VAR_CALENDAR_GREGORIAN 0x0100
+#define VAR_CALENDAR_GREGORIAN 0x0100
 #define MEMBERID_NIL DISPID_UNKNOWN
 #define ID_DEFAULTINST (-2)
 #define DISPATCH_METHOD 1
@@ -34,9 +34,9 @@
 #define IsHashValCompatible(h1,h2) ((BOOL)((0x00ff0000&(h1))==(0x00ff0000&(h2))))
 #define ACTIVEOBJECT_STRONG 0
 #define ACTIVEOBJECT_WEAK 1
-#ifdef NONAMELESSUNION
-#define V_UNION(X,Y) ((X)->n1.n2.n3.Y)
-#define V_VT(X) ((X)->n1.n2.vt)
+#if __STDC__ || defined(NONAMELESSUNION)
+#define V_UNION(X,Y) ((X)->__VARIANT_NAME_1.__VARIANT_NAME_2.__VARIANT_NAME_3.Y)
+#define V_VT(X) ((X)->__VARIANT_NAME_1.__VARIANT_NAME_2.vt)
 #else
 #define V_UNION(X,Y) ((X)->Y)
 #define V_VT(X) ((X)->vt)
@@ -90,7 +90,7 @@
 #define V_ARRAYREF(X) V_UNION(X,pparray)
 #define V_BYREF(X) V_UNION(X,byref)
 #if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
-#define V_DECIMAL(X) ((X)->n1.decVal)
+#define V_DECIMAL(X) ((X)->__VARIANT_NAME_1.decVal)
 #else
 #define V_DECIMAL(X) ((X)->decVal)
 #endif

reactos/w32api/include
wtypes.h 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- wtypes.h	1 Mar 2004 22:12:56 -0000	1.4
+++ wtypes.h	2 Mar 2004 10:25:59 -0000	1.5
@@ -11,19 +11,28 @@
 extern "C" {
 #endif
 
-#define DEC_SIGN(d) ((d)->u.s.sign)
-#define DEC_SCALE(d) ((d)->u.s.scale)
-#define DEC_SIGNSCALE(d) ((d)->u.signscale)
-#define DEC_HI32(d) ((d)->Hi32)
+#ifdef NONAMELESSUNION
+#define DEC_SIGN(d) ((d)->DUMMYUNIONNAME.DUMMYSTRUCTNAME.sign)
+#define DEC_SCALE(d) ((d)->DUMMYUNIONNAME.DUMMYSTRUCTNAME.scale)
+#define DEC_SIGNSCALE(d) ((d)->DUMMYUNIONNAME.signscale)
 #define DEC_MID32(d) ((d)->DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Mid32)
 #define DEC_LO32(d) ((d)->DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Lo32)
 #define DEC_LO64(d) ((d)->DUMMYUNIONNAME2.Lo64)
+#else
+#define DEC_SIGN(d) ((d)->sign)
+#define DEC_SCALE(d) ((d)->scale)
+#define DEC_SIGNSCALE(d) ((d)->signscale)
+#define DEC_MID32(d) ((d)->Mid32)
+#define DEC_LO32(d) ((d)->Lo32)
+#define DEC_LO64(d) ((d)->Lo64)
+#endif
+#define DEC_HI32(d) ((d)->Hi32)
 
 #define IID_NULL GUID_NULL
 #define CLSID_NULL GUID_NULL
 #define CBPCLIPDATA(d) ((d).cbSize-sizeof((d).ulClipFmt))
 #define DECIMAL_NEG ((BYTE)0x80)
-#define DECIMAL_SETZERO(d) {DEC_LO64(d)=DEC_HI32(d)=DEC_SIGNSCALE(d)=0;}
+#define DECIMAL_SETZERO(d) {DEC_LO64(&d)=DEC_HI32(&d)=DEC_SIGNSCALE(&d)=0;}
 #define ROTFLAGS_REGISTRATIONKEEPSALIVE	0x01
 #define ROTFLAGS_ALLOWANYCLIENT		0x02
 
CVSspam 0.2.8