Move the #define of DUMMYUNIONNAME* to before they are used.

Add a definition for DUMMYUNIONNAME (as opposed to DUN1, DUN2...).
Use the correct WINELIB_NAME_AW macro for TVITEM and related names.
Define "TV_ITEM" to agree with you-know-who's documentation.
This commit is contained in:
Zygo Blaxell 1999-02-09 14:20:05 +00:00 committed by Alexandre Julliard
parent dae096f8e4
commit 50d41fae21
1 changed files with 27 additions and 23 deletions

View File

@ -8,6 +8,24 @@
#include "windows.h"
#include "imagelist.h"
/* c++ likes nameless unions whereas c doesnt */
/* (used in property sheet structures) */
#ifdef __cplusplus
#define DUMMYUNIONNAME
#define DUMMYUNIONNAME1
#define DUMMYUNIONNAME2
#define DUMMYUNIONNAME3
#define DUMMYUNIONNAME4
#define DUMMYUNIONNAME5
#else
#define DUMMYUNIONNAME u
#define DUMMYUNIONNAME1 u1
#define DUMMYUNIONNAME2 u2
#define DUMMYUNIONNAME3 u3
#define DUMMYUNIONNAME4 u4
#define DUMMYUNIONNAME5 u5
#endif
#ifdef __cplusplus
extern "C" {
#endif
@ -1776,8 +1794,10 @@ typedef struct {
LPARAM lParam;
} TVITEM32W, *LPTVITEM32W;
#define TV_ITEM WINELIB_NAME(TV_ITEM)
#define LPTV_ITEM WINELIB_NAME(LPTV_ITEM)
#define TVITEM WINELIB_NAME_AW(TVITEM)
#define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
#define TV_ITEM TVITEM
typedef struct {
UINT32 mask;
@ -1805,10 +1825,10 @@ typedef struct {
INT32 cChildren;
LPARAM lParam;
INT32 iIntegral;
} TVITEMEX32W, *LPTV_ITEMEX32W;
} TVITEMEX32W, *LPTVITEMEX32W;
#define TV_ITEMEX WINELIB_NAME(TV_ITEM)
#define LPTV_ITEMEX WINELIB_NAME(LPTV_ITEM)
#define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
#define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
typedef struct tagTVINSERTSTRUCT32A {
@ -1829,8 +1849,8 @@ typedef struct tagTVINSERTSTRUCT32W {
} DUMMYUNIONNAME;
} TVINSERTSTRUCT32W, *LPTVINSERTSTRUCT32W;
#define TV_INSERTSTRUCT WINELIB_NAME(TVINSERTSTRUCT)
#define LPTV_INSERTSTRUCT WINELIB_NAME(LPTVINSERTSTRUCT)
#define TV_INSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
#define LPTV_INSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
#define TVINSERTSTRUCT_V1_SIZE32A CCSIZEOF_STRUCT(TVINSERTSTRUCT32A, item)
#define TVINSERTSTRUCT_V1_SIZE32W CCSIZEOF_STRUCT(TVINSERTSTRUCT32W, item)
@ -2828,22 +2848,6 @@ typedef INT32 (CALLBACK *PFNPROPSHEETCALLBACK32)(HWND32, UINT32, LPARAM);
typedef BOOL32 (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
typedef BOOL32 (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
/* c++ likes nameless unions whereas c doesnt */
/* (used in property sheet structures) */
#ifdef __cplusplus
#define DUMMYUNIONNAME1
#define DUMMYUNIONNAME2
#define DUMMYUNIONNAME3
#define DUMMYUNIONNAME4
#define DUMMYUNIONNAME5
#else
#define DUMMYUNIONNAME1 u1
#define DUMMYUNIONNAME2 u2
#define DUMMYUNIONNAME3 u3
#define DUMMYUNIONNAME4 u4
#define DUMMYUNIONNAME5 u5
#endif
/*
* Property sheet support (structures)
*/