Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
4233b5d6
Commit
4233b5d6
authored
Oct 22, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Use the standard va_list instead of __ms_va_list.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
922f9c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
driver_hid.h
dlls/dinput8/tests/driver_hid.h
+24
-24
No files found.
dlls/dinput8/tests/driver_hid.h
View file @
4233b5d6
...
...
@@ -143,7 +143,7 @@ static inline void winetest_set_location( const char *file, int line )
data
->
current_line
=
line
;
}
static
inline
void
kvprintf
(
const
char
*
format
,
__ms_
va_list
ap
)
static
inline
void
kvprintf
(
const
char
*
format
,
va_list
ap
)
{
struct
tls_data
*
data
=
get_tls_data
();
IO_STATUS_BLOCK
io
;
...
...
@@ -154,23 +154,23 @@ static inline void kvprintf( const char *format, __ms_va_list ap )
static
inline
void
WINAPIV
kprintf
(
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
void
WINAPIV
kprintf
(
const
char
*
format
,
...
)
{
__ms_
va_list
valist
;
va_list
valist
;
__ms_
va_start
(
valist
,
format
);
va_start
(
valist
,
format
);
kvprintf
(
format
,
valist
);
__ms_
va_end
(
valist
);
va_end
(
valist
);
}
static
inline
void
WINAPIV
winetest_printf
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
void
WINAPIV
winetest_printf
(
const
char
*
msg
,
...
)
{
struct
tls_data
*
data
=
get_tls_data
();
__ms_
va_list
valist
;
va_list
valist
;
kprintf
(
"%s:%d: "
,
data
->
current_file
,
data
->
current_line
);
__ms_
va_start
(
valist
,
msg
);
va_start
(
valist
,
msg
);
kvprintf
(
msg
,
valist
);
__ms_
va_end
(
valist
);
va_end
(
valist
);
}
static
inline
NTSTATUS
winetest_init
(
void
)
...
...
@@ -283,7 +283,7 @@ static inline LONG winetest_add_line(void)
return
count
;
}
static
inline
int
winetest_vok
(
int
condition
,
const
char
*
msg
,
__ms_
va_list
args
)
static
inline
int
winetest_vok
(
int
condition
,
const
char
*
msg
,
va_list
args
)
{
struct
tls_data
*
data
=
get_tls_data
();
...
...
@@ -332,13 +332,13 @@ static inline int winetest_vok( int condition, const char *msg, __ms_va_list arg
static
inline
void
WINAPIV
winetest_ok
(
int
condition
,
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
2
,
3
);
static
inline
void
WINAPIV
winetest_ok
(
int
condition
,
const
char
*
msg
,
...
)
{
__ms_
va_list
args
;
__ms_
va_start
(
args
,
msg
);
va_list
args
;
va_start
(
args
,
msg
);
winetest_vok
(
condition
,
msg
,
args
);
__ms_
va_end
(
args
);
va_end
(
args
);
}
static
inline
void
winetest_vskip
(
const
char
*
msg
,
__ms_
va_list
args
)
static
inline
void
winetest_vskip
(
const
char
*
msg
,
va_list
args
)
{
if
(
winetest_add_line
()
<
winetest_mute_threshold
)
{
...
...
@@ -352,34 +352,34 @@ static inline void winetest_vskip( const char *msg, __ms_va_list args )
static
inline
void
WINAPIV
winetest_skip
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
void
WINAPIV
winetest_skip
(
const
char
*
msg
,
...
)
{
__ms_
va_list
args
;
__ms_
va_start
(
args
,
msg
);
va_list
args
;
va_start
(
args
,
msg
);
winetest_vskip
(
msg
,
args
);
__ms_
va_end
(
args
);
va_end
(
args
);
}
static
inline
void
WINAPIV
winetest_win_skip
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
void
WINAPIV
winetest_win_skip
(
const
char
*
msg
,
...
)
{
__ms_
va_list
args
;
__ms_
va_start
(
args
,
msg
);
va_list
args
;
va_start
(
args
,
msg
);
if
(
!
running_under_wine
)
winetest_vskip
(
msg
,
args
);
else
winetest_vok
(
0
,
msg
,
args
);
__ms_
va_end
(
args
);
va_end
(
args
);
}
static
inline
void
WINAPIV
winetest_trace
(
const
char
*
msg
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
void
WINAPIV
winetest_trace
(
const
char
*
msg
,
...
)
{
__ms_
va_list
args
;
va_list
args
;
if
(
!
winetest_debug
)
return
;
if
(
winetest_add_line
()
<
winetest_mute_threshold
)
{
winetest_print_context
(
""
);
__ms_
va_start
(
args
,
msg
);
va_start
(
args
,
msg
);
kvprintf
(
msg
,
args
);
__ms_
va_end
(
args
);
va_end
(
args
);
}
else
InterlockedIncrement
(
&
muted_traces
);
}
...
...
@@ -409,13 +409,13 @@ static inline void WINAPIV winetest_push_context( const char *fmt, ... ) __WINE_
static
inline
void
WINAPIV
winetest_push_context
(
const
char
*
fmt
,
...
)
{
struct
tls_data
*
data
=
get_tls_data
();
__ms_
va_list
valist
;
va_list
valist
;
if
(
data
->
context_count
<
ARRAY_SIZE
(
data
->
context
))
{
__ms_
va_start
(
valist
,
fmt
);
va_start
(
valist
,
fmt
);
vsnprintf
(
data
->
context
[
data
->
context_count
],
sizeof
(
data
->
context
[
data
->
context_count
]),
fmt
,
valist
);
__ms_
va_end
(
valist
);
va_end
(
valist
);
data
->
context
[
data
->
context_count
][
sizeof
(
data
->
context
[
data
->
context_count
])
-
1
]
=
0
;
}
++
data
->
context_count
;
...
...
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