riched20/tests: Make some variables static.
This commit is contained in:
parent
05e24f39c3
commit
95c1bd4da9
|
@ -155,7 +155,7 @@ struct find_s {
|
|||
};
|
||||
|
||||
|
||||
struct find_s find_tests[] = {
|
||||
static struct find_s find_tests[] = {
|
||||
/* Find in empty text */
|
||||
{0, -1, "foo", FR_DOWN, -1},
|
||||
{0, -1, "foo", 0, -1},
|
||||
|
@ -164,7 +164,7 @@ struct find_s find_tests[] = {
|
|||
{5, 20, "foo", FR_DOWN, -1}
|
||||
};
|
||||
|
||||
struct find_s find_tests2[] = {
|
||||
static struct find_s find_tests2[] = {
|
||||
/* No-result find */
|
||||
{0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1},
|
||||
{5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1},
|
||||
|
@ -2446,10 +2446,10 @@ static void test_EM_SCROLL(void)
|
|||
DestroyWindow(hwndRichEdit);
|
||||
}
|
||||
|
||||
unsigned int recursionLevel = 0;
|
||||
unsigned int WM_SIZE_recursionLevel = 0;
|
||||
BOOL bailedOutOfRecursion = FALSE;
|
||||
LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
static unsigned int recursionLevel = 0;
|
||||
static unsigned int WM_SIZE_recursionLevel = 0;
|
||||
static BOOL bailedOutOfRecursion = FALSE;
|
||||
static LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
static LRESULT WINAPI RicheditStupidOverrideProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
|
|
@ -566,7 +566,7 @@ struct find_s {
|
|||
};
|
||||
|
||||
|
||||
struct find_s find_tests[] = {
|
||||
static struct find_s find_tests[] = {
|
||||
/* Find in empty text */
|
||||
{0, -1, "foo", FR_DOWN, -1},
|
||||
{0, -1, "foo", 0, -1},
|
||||
|
@ -575,7 +575,7 @@ struct find_s find_tests[] = {
|
|||
{5, 20, "foo", FR_DOWN, -1}
|
||||
};
|
||||
|
||||
struct find_s find_tests2[] = {
|
||||
static struct find_s find_tests2[] = {
|
||||
/* No-result find */
|
||||
{0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1},
|
||||
{5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1},
|
||||
|
@ -642,7 +642,7 @@ struct find_s find_tests2[] = {
|
|||
{4, -1, "INEW", 0, 10},
|
||||
};
|
||||
|
||||
struct find_s find_tests3[] = {
|
||||
static struct find_s find_tests3[] = {
|
||||
/* Searching for end of line characters */
|
||||
{0, -1, "t\r\r\ns", FR_DOWN | FR_MATCHCASE, 4},
|
||||
{6, -1, "\r\n", FR_DOWN | FR_MATCHCASE, 6},
|
||||
|
|
Loading…
Reference in New Issue