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
7494b5b9
Commit
7494b5b9
authored
Jan 23, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
parent
f229c911
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
32 deletions
+32
-32
generated.c
dlls/gdi/tests/generated.c
+1
-1
generated.c
dlls/kernel/tests/generated.c
+9
-9
generated.c
dlls/ntdll/tests/generated.c
+9
-9
generated.c
dlls/shell32/tests/generated.c
+9
-9
generated.c
dlls/shlwapi/tests/generated.c
+1
-1
generated.c
dlls/urlmon/tests/generated.c
+1
-1
generated.c
dlls/user/tests/generated.c
+1
-1
generated.c
dlls/wininet/tests/generated.c
+1
-1
No files found.
dlls/gdi/tests/generated.c
View file @
7494b5b9
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
...
...
dlls/kernel/tests/generated.c
View file @
7494b5b9
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
* Windows API extension
* Windows API extension
*/
*/
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
/* FIXME: Not sure if is possible to do without compiler extension */
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#endif
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
#ifdef FIELD_ALIGNMENT
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(FIELD_ALIGNMENT(type, field) == align, \
ok(FIELD_ALIGNMENT(type, field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")
\n
", \
FIELD_ALIGNMENT(type, field))
FIELD_ALIGNMENT(type, field))
#else
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
...
@@ -66,25 +66,25 @@
...
@@ -66,25 +66,25 @@
#define TEST_FIELD_OFFSET(type, field, offset) \
#define TEST_FIELD_OFFSET(type, field, offset) \
ok(FIELD_OFFSET(type, field) == offset, \
ok(FIELD_OFFSET(type, field) == offset, \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")
\n
", \
FIELD_OFFSET(type, field))
FIELD_OFFSET(type, field))
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#ifdef TYPE_ALIGNMENT
#ifdef TYPE_ALIGNMENT
#define TEST_TYPE_ALIGNMENT(type, align) \
#define TEST_TYPE_ALIGNMENT(type, align) \
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type))
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", TYPE_ALIGNMENT(type))
#else
#else
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#define TEST_TYPE_SIZE(type, size) \
#define TEST_TYPE_SIZE(type, size) \
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type))
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")
\n
", sizeof(type))
/***********************************************************************
/***********************************************************************
* Test macros
* Test macros
...
@@ -104,10 +104,10 @@
...
@@ -104,10 +104,10 @@
TEST_TYPE_SIZE(*(type)0, size)
TEST_TYPE_SIZE(*(type)0, size)
#define TEST_TYPE_SIGNED(type) \
#define TEST_TYPE_SIGNED(type) \
ok((type) -1 < 0, "(" #type ") -1 < 0");
ok((type) -1 < 0, "(" #type ") -1 < 0
\n
");
#define TEST_TYPE_UNSIGNED(type) \
#define TEST_TYPE_UNSIGNED(type) \
ok((type) -1 > 0, "(" #type ") -1 > 0");
ok((type) -1 > 0, "(" #type ") -1 > 0
\n
");
static
void
test_pack_BY_HANDLE_FILE_INFORMATION
(
void
)
static
void
test_pack_BY_HANDLE_FILE_INFORMATION
(
void
)
{
{
...
...
dlls/ntdll/tests/generated.c
View file @
7494b5b9
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
* Windows API extension
* Windows API extension
*/
*/
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
/* FIXME: Not sure if is possible to do without compiler extension */
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#endif
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#ifdef FIELD_ALIGNMENT
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(FIELD_ALIGNMENT(type, field) == align, \
ok(FIELD_ALIGNMENT(type, field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")
\n
", \
FIELD_ALIGNMENT(type, field))
FIELD_ALIGNMENT(type, field))
#else
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
...
@@ -67,25 +67,25 @@
...
@@ -67,25 +67,25 @@
#define TEST_FIELD_OFFSET(type, field, offset) \
#define TEST_FIELD_OFFSET(type, field, offset) \
ok(FIELD_OFFSET(type, field) == offset, \
ok(FIELD_OFFSET(type, field) == offset, \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")
\n
", \
FIELD_OFFSET(type, field))
FIELD_OFFSET(type, field))
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#ifdef TYPE_ALIGNMENT
#ifdef TYPE_ALIGNMENT
#define TEST_TYPE_ALIGNMENT(type, align) \
#define TEST_TYPE_ALIGNMENT(type, align) \
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type))
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", TYPE_ALIGNMENT(type))
#else
#else
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#define TEST_TYPE_SIZE(type, size) \
#define TEST_TYPE_SIZE(type, size) \
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type))
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")
\n
", sizeof(type))
/***********************************************************************
/***********************************************************************
* Test macros
* Test macros
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
TEST_TYPE_SIZE(*(type)0, size)
TEST_TYPE_SIZE(*(type)0, size)
#define TEST_TYPE_SIGNED(type) \
#define TEST_TYPE_SIGNED(type) \
ok((type) -1 < 0, "(" #type ") -1 < 0");
ok((type) -1 < 0, "(" #type ") -1 < 0
\n
");
#define TEST_TYPE_UNSIGNED(type) \
#define TEST_TYPE_UNSIGNED(type) \
ok((type) -1 > 0, "(" #type ") -1 > 0");
ok((type) -1 > 0, "(" #type ") -1 > 0
\n
");
static
void
test_pack_DWORD32
(
void
)
static
void
test_pack_DWORD32
(
void
)
{
{
...
...
dlls/shell32/tests/generated.c
View file @
7494b5b9
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
* Windows API extension
* Windows API extension
*/
*/
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
/* FIXME: Not sure if is possible to do without compiler extension */
/* FIXME: Not sure if is possible to do without compiler extension */
#endif
#endif
#if (_MSC_VER >= 1300) && defined(__cplusplus)
#if
defined(_MSC_VER) &&
(_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
#ifdef FIELD_ALIGNMENT
#ifdef FIELD_ALIGNMENT
# define TEST_FIELD_ALIGNMENT(type, field, align) \
# define TEST_FIELD_ALIGNMENT(type, field, align) \
ok(FIELD_ALIGNMENT(type, field) == align, \
ok(FIELD_ALIGNMENT(type, field) == align, \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \
"FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")
\n
", \
FIELD_ALIGNMENT(type, field))
FIELD_ALIGNMENT(type, field))
#else
#else
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
...
@@ -74,25 +74,25 @@
...
@@ -74,25 +74,25 @@
#define TEST_FIELD_OFFSET(type, field, offset) \
#define TEST_FIELD_OFFSET(type, field, offset) \
ok(FIELD_OFFSET(type, field) == offset, \
ok(FIELD_OFFSET(type, field) == offset, \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \
"FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")
\n
", \
FIELD_OFFSET(type, field))
FIELD_OFFSET(type, field))
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#ifdef TYPE_ALIGNMENT
#ifdef TYPE_ALIGNMENT
#define TEST_TYPE_ALIGNMENT(type, align) \
#define TEST_TYPE_ALIGNMENT(type, align) \
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type))
ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", TYPE_ALIGNMENT(type))
#else
#else
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
#define TEST_TYPE_SIZE(type, size) \
#define TEST_TYPE_SIZE(type, size) \
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type))
ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")
\n
", sizeof(type))
/***********************************************************************
/***********************************************************************
* Test macros
* Test macros
...
@@ -112,10 +112,10 @@
...
@@ -112,10 +112,10 @@
TEST_TYPE_SIZE(*(type)0, size)
TEST_TYPE_SIZE(*(type)0, size)
#define TEST_TYPE_SIGNED(type) \
#define TEST_TYPE_SIGNED(type) \
ok((type) -1 < 0, "(" #type ") -1 < 0");
ok((type) -1 < 0, "(" #type ") -1 < 0
\n
");
#define TEST_TYPE_UNSIGNED(type) \
#define TEST_TYPE_UNSIGNED(type) \
ok((type) -1 > 0, "(" #type ") -1 > 0");
ok((type) -1 > 0, "(" #type ") -1 > 0
\n
");
static
void
test_pack_APPBARDATA
(
void
)
static
void
test_pack_APPBARDATA
(
void
)
{
{
...
...
dlls/shlwapi/tests/generated.c
View file @
7494b5b9
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
...
...
dlls/urlmon/tests/generated.c
View file @
7494b5b9
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
...
...
dlls/user/tests/generated.c
View file @
7494b5b9
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
...
...
dlls/wininet/tests/generated.c
View file @
7494b5b9
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
#ifdef _TYPE_ALIGNMENT
#ifdef _TYPE_ALIGNMENT
#define TEST__TYPE_ALIGNMENT(type, align) \
#define TEST__TYPE_ALIGNMENT(type, align) \
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", _TYPE_ALIGNMENT(type))
ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")
\n
", _TYPE_ALIGNMENT(type))
#else
#else
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
# define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
#endif
#endif
...
...
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