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
fc51a268
Commit
fc51a268
authored
Jun 14, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix declaration warnings in the test cases.
parent
b9208137
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
21 deletions
+21
-21
profile.c
dlls/kernel/tests/profile.c
+1
-1
thread.c
dlls/kernel/tests/thread.c
+13
-13
time.c
dlls/kernel/tests/time.c
+6
-6
timer.c
dlls/kernel/tests/timer.c
+1
-1
No files found.
dlls/kernel/tests/profile.c
View file @
fc51a268
...
...
@@ -89,7 +89,7 @@ static void test_profile_int(void)
DeleteFileA
(
TESTFILE
);
}
void
test_profile_string
(
)
static
void
test_profile_string
(
void
)
{
HANDLE
h
;
int
ret
;
...
...
dlls/kernel/tests/thread.c
View file @
fc51a268
...
...
@@ -86,7 +86,7 @@ typedef struct {
that the thread local storage routines work correctly, and that
threads actually run concurrently
*/
DWORD
WINAPI
threadFunc1
(
LPVOID
p
)
static
DWORD
WINAPI
threadFunc1
(
LPVOID
p
)
{
t1Struct
*
tstruct
=
(
t1Struct
*
)
p
;
int
i
;
...
...
@@ -111,12 +111,12 @@ DWORD WINAPI threadFunc1(LPVOID p)
return
NUM_THREADS
+
tstruct
->
threadnum
;
}
DWORD
WINAPI
threadFunc2
(
LPVOID
p
)
static
DWORD
WINAPI
threadFunc2
(
LPVOID
p
)
{
return
99
;
}
DWORD
WINAPI
threadFunc3
(
LPVOID
p
)
static
DWORD
WINAPI
threadFunc3
(
LPVOID
p
)
{
HANDLE
thread
;
thread
=
GetCurrentThread
();
...
...
@@ -124,7 +124,7 @@ DWORD WINAPI threadFunc3(LPVOID p)
return
99
;
}
DWORD
WINAPI
threadFunc4
(
LPVOID
p
)
static
DWORD
WINAPI
threadFunc4
(
LPVOID
p
)
{
HANDLE
event
=
(
HANDLE
)
p
;
if
(
event
!=
NULL
)
{
...
...
@@ -135,7 +135,7 @@ DWORD WINAPI threadFunc4(LPVOID p)
}
#if CHECK_STACK
DWORD
WINAPI
threadFunc5
(
LPVOID
p
)
static
DWORD
WINAPI
threadFunc5
(
LPVOID
p
)
{
DWORD
*
exitCode
=
(
DWORD
*
)
p
;
SYSTEM_INFO
sysInfo
;
...
...
@@ -155,7 +155,7 @@ DWORD WINAPI threadFunc5(LPVOID p)
#endif
/* Check basic funcationality of CreateThread and Tls* functions */
VOID
test_CreateThread_basic
(
void
)
static
VOID
test_CreateThread_basic
(
void
)
{
HANDLE
thread
[
NUM_THREADS
],
event
[
NUM_THREADS
];
DWORD
threadid
[
NUM_THREADS
],
curthreadId
;
...
...
@@ -217,7 +217,7 @@ VOID test_CreateThread_basic(void)
}
/* Check that using the CREATE_SUSPENDED flag works */
VOID
test_CreateThread_suspended
(
void
)
static
VOID
test_CreateThread_suspended
(
void
)
{
HANDLE
thread
;
DWORD
threadId
;
...
...
@@ -246,7 +246,7 @@ VOID test_CreateThread_suspended(void)
}
/* Check that SuspendThread and ResumeThread work */
VOID
test_SuspendThread
(
void
)
static
VOID
test_SuspendThread
(
void
)
{
HANDLE
thread
,
access_thread
;
DWORD
threadId
,
exitCode
,
error
;
...
...
@@ -303,7 +303,7 @@ VOID test_SuspendThread(void)
/* Check that TerminateThread works properly
*/
VOID
test_TerminateThread
(
void
)
static
VOID
test_TerminateThread
(
void
)
{
HANDLE
thread
,
access_thread
,
event
;
DWORD
threadId
,
exitCode
;
...
...
@@ -342,7 +342,7 @@ VOID test_TerminateThread(void)
/* Check if CreateThread obeys the specified stack size. This code does
not work properly, and is currently disabled
*/
VOID
test_CreateThread_stack
(
void
)
static
VOID
test_CreateThread_stack
(
void
)
{
#if CHECK_STACK
/* The only way I know of to test the stack size is to use alloca
...
...
@@ -369,7 +369,7 @@ VOID test_CreateThread_stack(void)
}
/* Check whether setting/retrieving thread priorities works */
VOID
test_thread_priority
(
void
)
static
VOID
test_thread_priority
(
void
)
{
HANDLE
curthread
,
access_thread
;
DWORD
curthreadId
,
exitCode
;
...
...
@@ -455,7 +455,7 @@ VOID test_thread_priority(void)
}
/* check the GetThreadTimes function */
VOID
test_GetThreadTimes
(
void
)
static
VOID
test_GetThreadTimes
(
void
)
{
HANDLE
thread
,
access_thread
=
NULL
;
FILETIME
creationTime
,
exitTime
,
kernelTime
,
userTime
;
...
...
@@ -506,7 +506,7 @@ VOID test_GetThreadTimes(void)
/* Check the processor affinity functions */
/* NOTE: These functions should also be checked that they obey access control
*/
VOID
test_thread_processor
(
void
)
static
VOID
test_thread_processor
(
void
)
{
HANDLE
curthread
,
curproc
;
DWORD
processMask
,
systemMask
;
...
...
dlls/kernel/tests/time.c
View file @
fc51a268
...
...
@@ -75,7 +75,7 @@
static
void
test_conversions
()
static
void
test_conversions
(
void
)
{
FILETIME
ft
;
SYSTEMTIME
st
;
...
...
@@ -116,7 +116,7 @@ static void test_conversions()
}
static
void
test_invalid_arg
()
static
void
test_invalid_arg
(
void
)
{
FILETIME
ft
;
SYSTEMTIME
st
;
...
...
@@ -154,7 +154,7 @@ static void test_invalid_arg()
ok
(
!
SystemTimeToFileTime
(
&
st
,
&
ft
),
"bad minute
\n
"
);
}
void
test_GetTimeZoneInformation
(
)
static
void
test_GetTimeZoneInformation
(
void
)
{
TIME_ZONE_INFORMATION
tzinfo
,
tzinfo1
;
DWORD
res
=
GetTimeZoneInformation
(
&
tzinfo
);
...
...
@@ -173,7 +173,7 @@ void test_GetTimeZoneInformation()
}
void
test_FileTimeToSystemTime
(
)
static
void
test_FileTimeToSystemTime
(
void
)
{
FILETIME
ft
;
SYSTEMTIME
st
;
...
...
@@ -203,7 +203,7 @@ void test_FileTimeToSystemTime()
st
.
wMilliseconds
);
}
void
test_FileTimeToLocalFileTime
(
)
static
void
test_FileTimeToLocalFileTime
(
void
)
{
FILETIME
ft
,
lft
;
SYSTEMTIME
st
;
...
...
@@ -260,7 +260,7 @@ typedef struct {
WORD
ehour
;
/* expected hour */
}
TZLT2ST_case
;
void
test_TzSpecificLocalTimeToSystemTime
(
)
static
void
test_TzSpecificLocalTimeToSystemTime
(
void
)
{
HMODULE
hKernel
=
GetModuleHandle
(
"kernel32"
);
fnTzSpecificLocalTimeToSystemTime
pTzSpecificLocalTimeToSystemTime
;
...
...
dlls/kernel/tests/timer.c
View file @
fc51a268
...
...
@@ -27,7 +27,7 @@ typedef HANDLE (WINAPI *fnCreateWaitableTimerA)( SECURITY_ATTRIBUTES*, BOOL, LPS
typedef
BOOL
(
WINAPI
*
fnSetWaitableTimer
)(
HANDLE
,
LARGE_INTEGER
*
,
LONG
,
PTIMERAPCROUTINE
,
LPVOID
,
BOOL
);
void
test_timer
(
void
)
static
void
test_timer
(
void
)
{
HMODULE
hker
=
GetModuleHandle
(
"kernel32"
);
fnCreateWaitableTimerA
pCreateWaitableTimerA
;
...
...
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