Commit 95c1bd4d authored by Alexandre Julliard's avatar Alexandre Julliard

riched20/tests: Make some variables static.

parent 05e24f39
...@@ -155,7 +155,7 @@ struct find_s { ...@@ -155,7 +155,7 @@ struct find_s {
}; };
struct find_s find_tests[] = { static struct find_s find_tests[] = {
/* Find in empty text */ /* Find in empty text */
{0, -1, "foo", FR_DOWN, -1}, {0, -1, "foo", FR_DOWN, -1},
{0, -1, "foo", 0, -1}, {0, -1, "foo", 0, -1},
...@@ -164,7 +164,7 @@ struct find_s find_tests[] = { ...@@ -164,7 +164,7 @@ struct find_s find_tests[] = {
{5, 20, "foo", FR_DOWN, -1} {5, 20, "foo", FR_DOWN, -1}
}; };
struct find_s find_tests2[] = { static struct find_s find_tests2[] = {
/* No-result find */ /* No-result find */
{0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1}, {0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1},
{5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1}, {5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1},
...@@ -2446,10 +2446,10 @@ static void test_EM_SCROLL(void) ...@@ -2446,10 +2446,10 @@ static void test_EM_SCROLL(void)
DestroyWindow(hwndRichEdit); DestroyWindow(hwndRichEdit);
} }
unsigned int recursionLevel = 0; static unsigned int recursionLevel = 0;
unsigned int WM_SIZE_recursionLevel = 0; static unsigned int WM_SIZE_recursionLevel = 0;
BOOL bailedOutOfRecursion = FALSE; static BOOL bailedOutOfRecursion = FALSE;
LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); static LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
static LRESULT WINAPI RicheditStupidOverrideProcA(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 { ...@@ -566,7 +566,7 @@ struct find_s {
}; };
struct find_s find_tests[] = { static struct find_s find_tests[] = {
/* Find in empty text */ /* Find in empty text */
{0, -1, "foo", FR_DOWN, -1}, {0, -1, "foo", FR_DOWN, -1},
{0, -1, "foo", 0, -1}, {0, -1, "foo", 0, -1},
...@@ -575,7 +575,7 @@ struct find_s find_tests[] = { ...@@ -575,7 +575,7 @@ struct find_s find_tests[] = {
{5, 20, "foo", FR_DOWN, -1} {5, 20, "foo", FR_DOWN, -1}
}; };
struct find_s find_tests2[] = { static struct find_s find_tests2[] = {
/* No-result find */ /* No-result find */
{0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1}, {0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1},
{5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1}, {5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1},
...@@ -642,7 +642,7 @@ struct find_s find_tests2[] = { ...@@ -642,7 +642,7 @@ struct find_s find_tests2[] = {
{4, -1, "INEW", 0, 10}, {4, -1, "INEW", 0, 10},
}; };
struct find_s find_tests3[] = { static struct find_s find_tests3[] = {
/* Searching for end of line characters */ /* Searching for end of line characters */
{0, -1, "t\r\r\ns", FR_DOWN | FR_MATCHCASE, 4}, {0, -1, "t\r\r\ns", FR_DOWN | FR_MATCHCASE, 4},
{6, -1, "\r\n", FR_DOWN | FR_MATCHCASE, 6}, {6, -1, "\r\n", FR_DOWN | FR_MATCHCASE, 6},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment