Commit 55676e84 authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32/tests: Make some variables static.

parent 53d810c9
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "wine/test.h" #include "wine/test.h"
RECT height_change_notify_rect; static RECT height_change_notify_rect;
static HWND hMainWnd; static HWND hMainWnd;
...@@ -182,7 +182,7 @@ typedef struct { ...@@ -182,7 +182,7 @@ typedef struct {
rbband_result_t bands[50]; rbband_result_t bands[50];
} rbsize_result_t; } rbsize_result_t;
rbsize_result_t rbsize_results[] = { static const rbsize_result_t rbsize_results[] = {
{ {0, 0, 672, 0}, 0, 0, {0, }, 0, {{{0, 0, 0, 0}, 0, 0}, { {0, 0, 672, 0}, 0, 0, {0, }, 0, {{{0, 0, 0, 0}, 0, 0},
}, }, }, },
{ {0, 0, 672, 4}, 4, 1, {4, }, 1, { { {0, 0, 672, 4}, 4, 1, {4, }, 1, {
...@@ -299,7 +299,7 @@ static int rbsize_numtests = 0; ...@@ -299,7 +299,7 @@ static int rbsize_numtests = 0;
RECT rc; \ RECT rc; \
REBARBANDINFO rbi; \ REBARBANDINFO rbi; \
int count, i/*, mask=(todomask)*/; \ int count, i/*, mask=(todomask)*/; \
rbsize_result_t *res = &rbsize_results[rbsize_numtests]; \ const rbsize_result_t *res = &rbsize_results[rbsize_numtests]; \
assert(rbsize_numtests < sizeof(rbsize_results)/sizeof(rbsize_results[0])); \ assert(rbsize_numtests < sizeof(rbsize_results)/sizeof(rbsize_results[0])); \
GetClientRect(hRebar, &rc); \ GetClientRect(hRebar, &rc); \
check_rect("client", rc, res->rcClient); \ check_rect("client", rc, res->rcClient); \
...@@ -547,7 +547,7 @@ typedef struct { ...@@ -547,7 +547,7 @@ typedef struct {
BOOL heightNotify; BOOL heightNotify;
} rbresize_test_result_t; } rbresize_test_result_t;
rbresize_test_result_t resize_results[] = { static const rbresize_test_result_t resize_results[] = {
/* style 00000001 */ /* style 00000001 */
{{0, 2, 672, 2}, 0, FALSE}, {{0, 2, 672, 2}, 0, FALSE},
{{0, 2, 672, 22}, 1, TRUE}, {{0, 2, 672, 22}, 1, TRUE},
...@@ -673,7 +673,7 @@ static int resize_numtests = 0; ...@@ -673,7 +673,7 @@ static int resize_numtests = 0;
#define comment(fmt, arg1) #define comment(fmt, arg1)
#define check_client() { \ #define check_client() { \
RECT r; \ RECT r; \
rbresize_test_result_t *res = &resize_results[resize_numtests++]; \ const rbresize_test_result_t *res = &resize_results[resize_numtests++]; \
assert(resize_numtests <= sizeof(resize_results)/sizeof(resize_results[0])); \ assert(resize_numtests <= sizeof(resize_results)/sizeof(resize_results[0])); \
GetWindowRect(hRebar, &r); \ GetWindowRect(hRebar, &r); \
MapWindowPoints(HWND_DESKTOP, hMainWnd, (LPPOINT)&r, 2); \ MapWindowPoints(HWND_DESKTOP, hMainWnd, (LPPOINT)&r, 2); \
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define PARENT_SEQ_INDEX 0 #define PARENT_SEQ_INDEX 0
#define TRACKBAR_SEQ_INDEX 1 #define TRACKBAR_SEQ_INDEX 1
HWND hWndParent; static HWND hWndParent;
static struct msg_sequence *sequences[NUM_MSG_SEQUENCE]; static struct msg_sequence *sequences[NUM_MSG_SEQUENCE];
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "v6util.h" #include "v6util.h"
#include "msg.h" #include "msg.h"
const char *TEST_CALLBACK_TEXT = "callback_text"; static const char *TEST_CALLBACK_TEXT = "callback_text";
#define NUM_MSG_SEQUENCES 2 #define NUM_MSG_SEQUENCES 2
#define TREEVIEW_SEQ_INDEX 0 #define TREEVIEW_SEQ_INDEX 0
......
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