Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
43c18c13
Commit
43c18c13
authored
Jan 08, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winapi_test: FIELD_ALIGNMENT() is redundant so remove it.
parent
2e668d25
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
40 additions
and
120 deletions
+40
-120
generated.c
dlls/gdi32/tests/generated.c
+4
-12
generated.c
dlls/kernel32/tests/generated.c
+4
-12
generated.c
dlls/ntdll/tests/generated.c
+4
-12
generated.c
dlls/rpcrt4/tests/generated.c
+4
-12
generated.c
dlls/shell32/tests/generated.c
+4
-12
generated.c
dlls/shlwapi/tests/generated.c
+4
-12
generated.c
dlls/urlmon/tests/generated.c
+4
-12
generated.c
dlls/user32/tests/generated.c
+4
-12
generated.c
dlls/wininet/tests/generated.c
+4
-12
winapi_test
tools/winapi/winapi_test
+4
-12
No files found.
dlls/gdi32/tests/generated.c
View file @
43c18c13
...
...
@@ -28,21 +28,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -61,9 +53,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/kernel32/tests/generated.c
View file @
43c18c13
...
...
@@ -28,21 +28,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -61,9 +53,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/ntdll/tests/generated.c
View file @
43c18c13
...
...
@@ -28,21 +28,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -61,9 +53,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/rpcrt4/tests/generated.c
View file @
43c18c13
...
...
@@ -33,21 +33,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -66,9 +58,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/shell32/tests/generated.c
View file @
43c18c13
...
...
@@ -35,21 +35,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -68,9 +60,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/shlwapi/tests/generated.c
View file @
43c18c13
...
...
@@ -33,21 +33,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -66,9 +58,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/urlmon/tests/generated.c
View file @
43c18c13
...
...
@@ -31,21 +31,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -64,9 +56,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/user32/tests/generated.c
View file @
43c18c13
...
...
@@ -28,21 +28,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -61,9 +53,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
dlls/wininet/tests/generated.c
View file @
43c18c13
...
...
@@ -32,21 +32,13 @@
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
#else
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
* FIXME:
Not sure if is possible to do without
compiler extension
* (if type is not just a name that is,
if so the normal)
* FIXME:
May not be possible without a
compiler extension
* (if type is not just a name that is,
otherwise the normal
* TYPE_ALIGNMENT can be used)
*/
#endif
...
...
@@ -65,9 +57,9 @@
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(
FIELD_ALIGNMENT(type,
field) == align, \
ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
(int)
FIELD_ALIGNMENT(type,
field))
(int)
_TYPE_ALIGNMENT(((type*)0)->
field))
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
#endif
...
...
tools/winapi/winapi_test
View file @
43c18c13
...
...
@@ -512,21 +512,13 @@ sub output_header($$$) {
print
OUT
" */\n"
;
print
OUT
"\n"
;
print
OUT
"#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)\n"
;
print
OUT
"# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)\n"
;
print
OUT
"#elif defined(__GNUC__)\n"
;
print
OUT
"# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)\n"
;
print
OUT
"#else\n"
;
print
OUT
"/* FIXME: Not sure if is possible to do without compiler extension */\n"
;
print
OUT
"#endif\n"
;
print
OUT
"\n"
;
print
OUT
"#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)\n"
;
print
OUT
"# define _TYPE_ALIGNMENT(type) __alignof(type)\n"
;
print
OUT
"#elif defined(__GNUC__)\n"
;
print
OUT
"# define _TYPE_ALIGNMENT(type) __alignof__(type)\n"
;
print
OUT
"#else\n"
;
print
OUT
"/*\n"
;
print
OUT
" * FIXME:
Not sure if is possible to do without
compiler extension\n"
;
print
OUT
" * (if type is not just a name that is,
if so the normal)
\n"
;
print
OUT
" * FIXME:
May not be possible without a
compiler extension\n"
;
print
OUT
" * (if type is not just a name that is,
otherwise the normal
\n"
;
print
OUT
" * TYPE_ALIGNMENT can be used)\n"
;
print
OUT
" */\n"
;
print
OUT
"#endif\n"
;
...
...
@@ -546,9 +538,9 @@ sub output_header($$$) {
print
OUT
"\n"
;
print
OUT
"#ifdef FIELD_ALIGNMENT\n"
;
print
OUT
"# define TEST_FIELD_ALIGNMENT(type, field, align) \\\n"
;
print
OUT
" ok(
FIELD_ALIGNMENT(type,
field) == align, \\\n"
;
print
OUT
" ok(
_TYPE_ALIGNMENT(((type*)0)->
field) == align, \\\n"
;
print
OUT
" \"FIELD_ALIGNMENT(\" #type \", \" #field \") == %d (expected \" #align \")\\n\", \\\n"
;
print
OUT
" (int)
FIELD_ALIGNMENT(type,
field))\n"
;
print
OUT
" (int)
_TYPE_ALIGNMENT(((type*)0)->
field))\n"
;
print
OUT
"#else\n"
;
print
OUT
"# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)\n"
;
print
OUT
"#endif\n"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment