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
71678645
Commit
71678645
authored
May 30, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Fix some nasty #ifdef syntax.
parent
a6f1ebfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
29 deletions
+8
-29
mlang.c
dlls/mlang/tests/mlang.c
+8
-29
No files found.
dlls/mlang/tests/mlang.c
View file @
71678645
...
@@ -36,14 +36,8 @@
...
@@ -36,14 +36,8 @@
#define CP_UNICODE 1200
#define CP_UNICODE 1200
#endif
#endif
#if 0
/* #define DUMP_CP_INFO */
#define DUMP_CP_INFO
/* #define DUMP_SCRIPT_INFO */
#define DUMP_SCRIPT_INFO
#if defined DUMP_CP_INFO || defined DUMP_SCRIPT_INFO
#include "wine/debug.h"
#endif
#endif /* 0 */
static
BOOL
(
WINAPI
*
pGetCPInfoExA
)(
UINT
,
DWORD
,
LPCPINFOEXA
);
static
BOOL
(
WINAPI
*
pGetCPInfoExA
)(
UINT
,
DWORD
,
LPCPINFOEXA
);
static
HRESULT
(
WINAPI
*
pConvertINetMultiByteToUnicode
)(
LPDWORD
,
DWORD
,
LPCSTR
,
static
HRESULT
(
WINAPI
*
pConvertINetMultiByteToUnicode
)(
LPDWORD
,
DWORD
,
LPCSTR
,
...
@@ -630,13 +624,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
...
@@ -630,13 +624,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszWebCharset
,
mcsi
.
wszCharset
),
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszWebCharset
,
mcsi
.
wszCharset
),
"%s != %s
\n
"
,
#ifdef DUMP_CP_INFO
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
"wszWebCharset mismatch
\n
"
);
#endif
if
(
0
)
if
(
0
)
{
{
...
@@ -661,13 +650,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
...
@@ -661,13 +650,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszHeaderCharset
,
mcsi
.
wszCharset
),
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszHeaderCharset
,
mcsi
.
wszCharset
),
"%s != %s
\n
"
,
#ifdef DUMP_CP_INFO
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
"wszHeaderCharset mismatch
\n
"
);
#endif
if
(
0
)
if
(
0
)
{
{
...
@@ -692,13 +676,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
...
@@ -692,13 +676,8 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszBodyCharset
,
mcsi
.
wszCharset
),
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszBodyCharset
,
mcsi
.
wszCharset
),
"%s != %s
\n
"
,
#ifdef DUMP_CP_INFO
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
"wszBodyCharset mismatch
\n
"
);
#endif
if
(
0
)
if
(
0
)
{
{
...
...
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