USER32: fix declarations

Mike McCormack mike at codeweavers.com
Tue Jun 14 22:22:36 CDT 2005


ChangeLog:
* fix declarations
-------------- next part --------------
? dlls/user/tests/child.c
? dlls/user/tests/child.ok
? dlls/user/tests/timer.c
? dlls/user/tests/timer.ok
Index: dlls/user/tests/class.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/class.c,v
retrieving revision 1.18
diff -u -p -r1.18 class.c
--- dlls/user/tests/class.c	22 Feb 2005 14:56:28 -0000	1.18
+++ dlls/user/tests/class.c	15 Jun 2005 03:24:47 -0000
@@ -547,12 +547,12 @@ static void test_instances(void)
     check_thread_instance( "EDIT", (HINSTANCE)0x12345678, (HINSTANCE)0x12345678, (HINSTANCE)0xdeadbeef );
 }
 
-LRESULT WINAPI TestDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+static LRESULT WINAPI TestDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 {
     return DefWindowProc(hWnd, uMsg, wParam, lParam);
 }
 
-BOOL RegisterTestDialog(HINSTANCE hInstance)
+static BOOL RegisterTestDialog(HINSTANCE hInstance)
 {
     WNDCLASSEX wcx;
     ATOM atom = 0;
@@ -582,7 +582,7 @@ BOOL RegisterTestDialog(HINSTANCE hInsta
 
 /* test registering a dialog box created by using the CLASS directive in a
    resource file, then test creating the dialog using CreateDialogParam. */
-void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
+static void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
 {
     HWND hWndMain;
 
Index: dlls/user/tests/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/edit.c,v
retrieving revision 1.7
diff -u -p -r1.7 edit.c
--- dlls/user/tests/edit.c	14 Jun 2005 12:24:48 -0000	1.7
+++ dlls/user/tests/edit.c	15 Jun 2005 03:24:47 -0000
@@ -42,7 +42,7 @@ static char szEditTest2Name[] = "Edit Te
 static HINSTANCE hinst;
 static HWND hwndET2;
 
-HWND create_editcontrol (DWORD style, DWORD exstyle)
+static HWND create_editcontrol (DWORD style, DWORD exstyle)
 {
     HWND handle;
 
Index: dlls/user/tests/listbox.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/listbox.c,v
retrieving revision 1.7
diff -u -p -r1.7 listbox.c
--- dlls/user/tests/listbox.c	10 Mar 2005 17:17:22 -0000	1.7
+++ dlls/user/tests/listbox.c	15 Jun 2005 03:24:47 -0000
@@ -37,7 +37,7 @@ static const char *strings[4] = {
   "Fourth added which is very long because at some time we only had a 256 byte character buffer and that was overflowing in one of those applications that had a common dialog file open box and tried to add a 300 characters long custom filter string which of course the code did not like and crashed. Just make sure this string is longer than 256 characters."
 };
 
-HWND
+static HWND
 create_listbox (DWORD add_style)
 {
   HWND handle=CreateWindow ("LISTBOX", "TestList",
@@ -75,7 +75,7 @@ struct listbox_test {
   struct listbox_stat   sel,   sel_todo;
 };
 
-void
+static void
 listbox_query (HWND handle, struct listbox_stat *results)
 {
   results->selected = SendMessage (handle, LB_GETCURSEL, 0, 0);
@@ -84,7 +84,7 @@ listbox_query (HWND handle, struct listb
   results->selcount = SendMessage (handle, LB_GETSELCOUNT, 0, 0);
 }
 
-void
+static void
 buttonpress (HWND handle, WORD x, WORD y)
 {
   LPARAM lp=x+(y<<16);
@@ -95,7 +95,7 @@ buttonpress (HWND handle, WORD x, WORD y
   REDRAW;
 }
 
-void
+static void
 keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
 {
   LPARAM lp=1+(scancode<<16)+(extended?KEYEVENTF_EXTENDEDKEY:0);
@@ -121,7 +121,7 @@ keypress (HWND handle, WPARAM keycode, B
   listbox_todo_field_ok(t, s, caret, got); \
   listbox_todo_field_ok(t, s, selcount, got)
 
-void
+static void
 check (const struct listbox_test test)
 {
   struct listbox_stat answer;
@@ -172,7 +172,7 @@ check (const struct listbox_test test)
   DestroyWindow (hLB);
 }
 
-void check_item_height()
+static void check_item_height(void)
 {
     HWND hLB;
     HDC hdc;
Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.36
diff -u -p -r1.36 sysparams.c
--- dlls/user/tests/sysparams.c	23 Mar 2005 13:15:18 -0000	1.36
+++ dlls/user/tests/sysparams.c	15 Jun 2005 03:24:47 -0000
@@ -160,7 +160,7 @@ static void test_change_message( int act
     change_last_param = 0;
 }
 
-static BOOL test_error_msg ( int rc, char *name )
+static BOOL test_error_msg ( int rc, const char *name )
 {
     DWORD last_error = GetLastError();
 
Index: dlls/user/tests/win.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/win.c,v
retrieving revision 1.60
diff -u -p -r1.60 win.c
--- dlls/user/tests/win.c	31 May 2005 13:39:24 -0000	1.60
+++ dlls/user/tests/win.c	15 Jun 2005 03:24:47 -0000
@@ -2627,7 +2627,7 @@ static void test_window_styles()
     check_window_style(0, WS_EX_APPWINDOW, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_APPWINDOW|WS_EX_WINDOWEDGE);
 }
 
-void test_scrollvalidate( HWND parent)
+static void test_scrollvalidate( HWND parent)
 {
     HDC hdc;
     HRGN hrgn=CreateRectRgn(0,0,0,0);
@@ -2758,7 +2758,7 @@ void test_scrollvalidate( HWND parent)
 
 /* couple of tests of return values of scrollbar functions
  * called on a scrollbarless window */ 
-void test_scroll()
+static void test_scroll(void)
 {
     BOOL ret;
     INT min, max;
@@ -2792,7 +2792,7 @@ void test_scroll()
     DestroyWindow( hwnd);
 }
 
-static void test_params()
+static void test_params(void)
 {
     INT rc;
 


More information about the wine-patches mailing list