Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
705b5a00
Commit
705b5a00
authored
Sep 29, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug.h, test.h: Temporary add ifdefs around some printfs to avoid format.
parent
f8b8f216
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
debug.h
include/wine/debug.h
+13
-0
test.h
include/wine/test.h
+4
-0
No files found.
include/wine/debug.h
View file @
705b5a00
...
@@ -196,19 +196,32 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
...
@@ -196,19 +196,32 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
static
inline
const
char
*
wine_dbgstr_point
(
const
POINT
*
pt
)
static
inline
const
char
*
wine_dbgstr_point
(
const
POINT
*
pt
)
{
{
if
(
!
pt
)
return
"(null)"
;
if
(
!
pt
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
pt
->
x
,
pt
->
y
);
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
pt
->
x
,
pt
->
y
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)"
,
pt
->
x
,
pt
->
y
);
#endif
}
}
static
inline
const
char
*
wine_dbgstr_size
(
const
SIZE
*
size
)
static
inline
const
char
*
wine_dbgstr_size
(
const
SIZE
*
size
)
{
{
if
(
!
size
)
return
"(null)"
;
if
(
!
size
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
size
->
cx
,
size
->
cy
);
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
size
->
cx
,
size
->
cy
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)"
,
size
->
cx
,
size
->
cy
);
#endif
}
}
static
inline
const
char
*
wine_dbgstr_rect
(
const
RECT
*
rect
)
static
inline
const
char
*
wine_dbgstr_rect
(
const
RECT
*
rect
)
{
{
if
(
!
rect
)
return
"(null)"
;
if
(
!
rect
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)-(%ld,%ld)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
return
wine_dbg_sprintf
(
"(%ld,%ld)-(%ld,%ld)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)-(%d,%d)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
#endif
}
}
static
inline
const
char
*
wine_dbgstr_longlong
(
ULONGLONG
ll
)
static
inline
const
char
*
wine_dbgstr_longlong
(
ULONGLONG
ll
)
...
...
include/wine/test.h
View file @
705b5a00
...
@@ -371,7 +371,11 @@ static int run_test( const char *name )
...
@@ -371,7 +371,11 @@ static int run_test( const char *name )
if
(
winetest_debug
)
if
(
winetest_debug
)
{
{
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
fprintf
(
stdout
,
"%s: %ld tests executed, %ld marked as todo, %ld %s.
\n
"
,
fprintf
(
stdout
,
"%s: %ld tests executed, %ld marked as todo, %ld %s.
\n
"
,
#else
fprintf
(
stdout
,
"%s: %d tests executed, %d marked as todo, %d %s.
\n
"
,
#endif
name
,
successes
+
failures
+
todo_successes
+
todo_failures
,
name
,
successes
+
failures
+
todo_successes
+
todo_failures
,
todo_successes
,
failures
+
todo_failures
,
todo_successes
,
failures
+
todo_failures
,
(
failures
+
todo_failures
!=
1
)
?
"failures"
:
"failure"
);
(
failures
+
todo_failures
!=
1
)
?
"failures"
:
"failure"
);
...
...
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