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
7064e883
Commit
7064e883
authored
Oct 01, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Make some variables static.
parent
c1b1b6f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
change.c
dlls/kernel32/tests/change.c
+2
-4
pipe.c
dlls/kernel32/tests/pipe.c
+1
-1
resource.c
dlls/kernel32/tests/resource.c
+2
-2
thread.c
dlls/kernel32/tests/thread.c
+2
-2
No files found.
dlls/kernel32/tests/change.c
View file @
7064e883
...
@@ -369,9 +369,8 @@ static void test_ffcnMultipleThreads(void)
...
@@ -369,9 +369,8 @@ static void test_ffcnMultipleThreads(void)
ok
(
r
==
TRUE
,
"failed to remove dir
\n
"
);
ok
(
r
==
TRUE
,
"failed to remove dir
\n
"
);
}
}
typedef
BOOL
(
WINAPI
*
fn
ReadDirectoryChangesW
)(
HANDLE
,
LPVOID
,
DWORD
,
BOOL
,
DWORD
,
static
BOOL
(
WINAPI
*
p
ReadDirectoryChangesW
)(
HANDLE
,
LPVOID
,
DWORD
,
BOOL
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
,
LPOVERLAPPED_COMPLETION_ROUTINE
);
LPDWORD
,
LPOVERLAPPED
,
LPOVERLAPPED_COMPLETION_ROUTINE
);
fnReadDirectoryChangesW
pReadDirectoryChangesW
;
static
void
test_readdirectorychanges
(
void
)
static
void
test_readdirectorychanges
(
void
)
{
{
...
@@ -874,8 +873,7 @@ static void test_ffcn_directory_overlap(void)
...
@@ -874,8 +873,7 @@ static void test_ffcn_directory_overlap(void)
START_TEST
(
change
)
START_TEST
(
change
)
{
{
HMODULE
hkernel32
=
GetModuleHandle
(
"kernel32"
);
HMODULE
hkernel32
=
GetModuleHandle
(
"kernel32"
);
pReadDirectoryChangesW
=
(
fnReadDirectoryChangesW
)
pReadDirectoryChangesW
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"ReadDirectoryChangesW"
);
GetProcAddress
(
hkernel32
,
"ReadDirectoryChangesW"
);
test_ffcnMultipleThreads
();
test_ffcnMultipleThreads
();
/* The above function runs a test that must occur before FindCloseChangeNotification is run in the
/* The above function runs a test that must occur before FindCloseChangeNotification is run in the
...
...
dlls/kernel32/tests/pipe.c
View file @
7064e883
...
@@ -392,7 +392,7 @@ static DWORD CALLBACK alarmThreadMain(LPVOID arg)
...
@@ -392,7 +392,7 @@ static DWORD CALLBACK alarmThreadMain(LPVOID arg)
return
1
;
return
1
;
}
}
HANDLE
hnp
=
INVALID_HANDLE_VALUE
;
static
HANDLE
hnp
=
INVALID_HANDLE_VALUE
;
/** Trivial byte echo server - disconnects after each session */
/** Trivial byte echo server - disconnects after each session */
static
DWORD
CALLBACK
serverThreadMain1
(
LPVOID
arg
)
static
DWORD
CALLBACK
serverThreadMain1
(
LPVOID
arg
)
...
...
dlls/kernel32/tests/resource.c
View file @
7064e883
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
static
const
char
filename
[]
=
"test_.exe"
;
static
const
char
filename
[]
=
"test_.exe"
;
static
DWORD
GLE
;
static
DWORD
GLE
;
enum
{
enum
constants
{
page_size
=
0x1000
,
page_size
=
0x1000
,
rva_rsrc_start
=
page_size
*
3
,
rva_rsrc_start
=
page_size
*
3
,
max_sections
=
3
max_sections
=
3
}
constants
;
};
/* rodata @ [0x1000-0x3000) */
/* rodata @ [0x1000-0x3000) */
static
const
IMAGE_SECTION_HEADER
sh_rodata_1
=
static
const
IMAGE_SECTION_HEADER
sh_rodata_1
=
...
...
dlls/kernel32/tests/thread.c
View file @
7064e883
...
@@ -146,7 +146,7 @@ static void cleanup_thread_sync_helpers(void)
...
@@ -146,7 +146,7 @@ static void cleanup_thread_sync_helpers(void)
CloseHandle
(
stop_event
);
CloseHandle
(
stop_event
);
}
}
DWORD
tlsIndex
;
static
DWORD
tlsIndex
;
typedef
struct
{
typedef
struct
{
int
threadnum
;
int
threadnum
;
...
@@ -157,7 +157,7 @@ typedef struct {
...
@@ -157,7 +157,7 @@ typedef struct {
/* WinME supports OpenThread but doesn't know about access restrictions so
/* WinME supports OpenThread but doesn't know about access restrictions so
we require them to be either completely ignored or always obeyed.
we require them to be either completely ignored or always obeyed.
*/
*/
INT
obeying_ars
=
0
;
/* -1 == no, 0 == dunno yet, 1 == yes */
static
INT
obeying_ars
=
0
;
/* -1 == no, 0 == dunno yet, 1 == yes */
#define obey_ar(x) \
#define obey_ar(x) \
(obeying_ars == 0 \
(obeying_ars == 0 \
? ((x) \
? ((x) \
...
...
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