25#define DWORD_PTR UINT_PTR
26#define LONG_PTR INT_PTR
27#define ULONG_PTR UINT_PTR
33#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
34# define _TYPE_ALIGNMENT(type) __alignof(type)
35#elif defined(__GNUC__)
36# define _TYPE_ALIGNMENT(type) __alignof__(type)
45#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
46#pragma warning(disable:4116)
49#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
50# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
57#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
60# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
62# define TEST_TYPE_ALIGN(type, align)
66# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
67# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
69# define TEST_TARGET_ALIGN(type, align)
70# define TEST_FIELD_ALIGN(type, field, align)
73#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
75#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
76#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
77#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
78#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static const WCHAR version[]
#define TEST_TARGET_SIZE(type, size)
#define TEST_FIELD_OFFSET(type, field, offset)
#define TEST_TARGET_ALIGN(type, align)
static void test_pack(void)
#define TEST_TYPE_SIZE(type, size)
#define TEST_FIELD_SIZE(type, field, size)
#define TEST_TYPE_ALIGN(type, align)
#define TEST_FIELD_ALIGN(type, field, align)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static HMODULE MODULEINFO DWORD cb
static const CLSID IPropertyStorage UINT *static const PROPSPEC PROPVARIANT *static UINT const PROPSPEC PROPVARIANT PROPID
#define TEST_TYPE_UNSIGNED(type)
#define TEST_TYPE_SIGNED(type)
static void test_pack_RemHPALETTE(void)
static void test_pack_userHBITMAP(void)
static void test_pack_SHELLEXECUTEINFOA(void)
static void test_pack_LPSHFILEOPSTRUCTW(void)
static void test_pack_LPFILEGROUPDESCRIPTORW(void)
static void test_pack_SHNAMEMAPPINGW(void)
static void test_pack_RemHMETAFILEPICT(void)
static void test_pack_SHFILEOPSTRUCTA(void)
static void test_pack_LPSHNAMEMAPPINGW(void)
static void test_pack_SHFILEOPSTRUCTW(void)
static void test_pack_SHChangeProductKeyAsIDList(void)
static void test_pack_LPSHELLDETAILS(void)
static void test_pack_BSTRBLOB(void)
static void test_pack_LPSHChangeDWORDAsIDList(void)
static void test_pack_wireHMETAFILE(void)
static void test_pack_LPFNVIEWCALLBACK(void)
static void test_pack_LPBLOB(void)
static void test_pack_LPSHITEMID(void)
static void test_pack_DRAGINFOW(void)
static void test_pack_UP_FLAGGED_BYTE_BLOB(void)
static void test_pack_userHENHMETAFILE(void)
static void test_pack_userCLIPFORMAT(void)
static void test_pack_OLECHAR(void)
static void test_pack_DROPFILES(void)
static void test_pack_LPFILEDESCRIPTORW(void)
static void test_pack_DWORD_SIZEDARR(void)
static void test_pack_STRRET(void)
static void test_pack_SHFILEINFOW(void)
static void test_pack_QCMINFO_IDMAP(void)
static void test_pack_CLIPFORMAT(void)
static void test_pack_LPFILEGROUPDESCRIPTORA(void)
static void test_pack_NOTIFYICONDATAA(void)
static void test_pack_UP_FLAGGED_WORD_BLOB(void)
static void test_pack_PRINTEROP_FLAGS(void)
static void test_pack_wireCLIPFORMAT(void)
static void test_pack_LPCITEMIDLIST(void)
static void test_pack_LPCSHITEMID(void)
static void test_pack_LPSHELLSTATE(void)
static void test_pack_SHChangeDWORDAsIDList(void)
static void test_pack_CLSID(void)
static void test_pack_FILEDESCRIPTORW(void)
static void test_pack_wireHENHMETAFILE(void)
static void test_pack_SHELLSTATE(void)
static void test_pack_LPBSTRBLOB(void)
static void test_pack_FMTID(void)
static void test_pack_HYPER_SIZEDARR(void)
static void test_pack_WORD_SIZEDARR(void)
static void test_pack_RemHBITMAP(void)
static void test_pack_LPCSFV(void)
static void test_pack_LPSHELLEXECUTEINFOA(void)
static void test_pack_LPSHFILEOPSTRUCTA(void)
static void test_pack_PBROWSEINFOA(void)
static void test_pack_ITEMSPACING(void)
static void test_pack_VARIANT_BOOL(void)
static void test_pack_LPBROWSEINFOA(void)
static void test_pack_SFV_CREATE(void)
static void test_pack_userHGLOBAL(void)
static void test_pack_NOTIFYICONDATAW(void)
static void test_pack_LPSHELLEXECUTEINFOW(void)
static void test_pack_FLAGGED_BYTE_BLOB(void)
static void test_pack_LPBSTR(void)
static void test_pack_AUTO_SCROLL_DATA(void)
static void test_pack_PROPID(void)
static void test_pack_FLAGGED_WORD_BLOB(void)
static void test_pack_BYTE_BLOB(void)
static void test_pack_FILEOP_FLAGS(void)
static void test_pack_DATE(void)
static void test_pack_LPTBINFO(void)
static void test_pack_userHPALETTE(void)
static void test_pack_wireBSTR(void)
static void test_pack_PAPPBARDATA(void)
static void test_pack_LPCOLESTR(void)
static void test_pack_LPFILEDESCRIPTORA(void)
static void test_pack_wireHBITMAP(void)
static void test_pack_UP_BYTE_BLOB(void)
static void test_pack_LPBROWSEINFOW(void)
static void test_pack_userBITMAP(void)
static void test_pack_CSFV(void)
static void test_pack_SHITEMID(void)
static void test_pack_userHMETAFILEPICT(void)
static void test_pack_SHELLFLAGSTATE(void)
static void test_pack_SHNAMEMAPPINGA(void)
static void test_pack_remoteMETAFILEPICT(void)
static void test_pack_SHChangeNotifyEntry(void)
static void test_pack_wireHGLOBAL(void)
static void test_pack_QCMINFO(void)
static void test_pack_LPSTRRET(void)
static void test_pack_BYTE_SIZEDARR(void)
static void test_pack_PNOTIFYICONDATAW(void)
static void test_pack_LPDRAGINFOA(void)
static void test_pack_LPDROPFILES(void)
static void test_pack_LPSHELLFLAGSTATE(void)
static void test_pack_SHFILEINFOA(void)
static void test_pack_wireHMETAFILEPICT(void)
static void test_pack_LPCABINETSTATE(void)
static void test_pack_LPIDA(void)
static void test_pack_DRAGINFOA(void)
static void test_pack_DOUBLE(void)
static void test_pack_LPITEMIDLIST(void)
static void test_pack_SHDESCRIPTIONID(void)
static void test_pack_APPBARDATA(void)
static void test_pack_PNOTIFYICONDATAA(void)
static void test_pack_RemHENHMETAFILE(void)
static void test_pack_LPSHChangeProductKeyAsIDList(void)
static void test_pack_wireHPALETTE(void)
static void test_pack_LPQCMINFO(void)
static void test_pack_FILEDESCRIPTORA(void)
static void test_pack_userHMETAFILE(void)
static void test_pack_IID(void)
static void test_pack_QCMINFO_IDMAP_PLACEMENT(void)
static void test_pack_BROWSEINFOW(void)
static void test_pack_COAUTHIDENTITY(void)
static void test_pack_BLOB(void)
static void test_pack_RemHGLOBAL(void)
static void test_pack_BROWSEINFOA(void)
static void test_pack_CIDA(void)
static void test_pack_COAUTHINFO(void)