tests: make some functions static

Stefan Huehner stefan at huehner.org
Mon Jun 20 09:59:15 CDT 2005


Hi,

attached patch makes some functions static which are not used outside
its own file.

ChangeLog:
- make some function static

Regards,
Stefan

-------------- next part --------------
Index: dlls/ddraw/tests/ddrawmodes.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/tests/ddrawmodes.c,v
retrieving revision 1.6
diff -u -p -r1.6 ddrawmodes.c
--- dlls/ddraw/tests/ddrawmodes.c	20 Jun 2005 14:18:05 -0000	1.6
+++ dlls/ddraw/tests/ddrawmodes.c	20 Jun 2005 14:38:32 -0000
@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSUR
     return DDENUMRET_OK;
 }
 
-void enumdisplaymodes(void)
+static void enumdisplaymodes(void)
 {
     DDSURFACEDESC ddsd;
     HRESULT rc;
Index: dlls/iphlpapi/tests/iphlpapi.c
===================================================================
RCS file: /home/wine/wine/dlls/iphlpapi/tests/iphlpapi.c,v
retrieving revision 1.5
diff -u -p -r1.5 iphlpapi.c
--- dlls/iphlpapi/tests/iphlpapi.c	6 May 2004 23:39:59 -0000	1.5
+++ dlls/iphlpapi/tests/iphlpapi.c	20 Jun 2005 14:38:32 -0000
@@ -277,7 +277,7 @@ static void testGetIpForwardTable(void)
   }
 }
 
-void testGetIpNetTable(void)
+static void testGetIpNetTable(void)
 {
   if (gGetIpNetTable) {
     DWORD apiReturn;
@@ -307,7 +307,7 @@ void testGetIpNetTable(void)
   }
 }
 
-void testGetIcmpStatistics(void)
+static void testGetIcmpStatistics(void)
 {
   if (gGetIcmpStatistics) {
     DWORD apiReturn;
@@ -325,7 +325,7 @@ void testGetIcmpStatistics(void)
   }
 }
 
-void testGetIpStatistics(void)
+static void testGetIpStatistics(void)
 {
   if (gGetIpStatistics) {
     DWORD apiReturn;
@@ -343,7 +343,7 @@ void testGetIpStatistics(void)
   }
 }
 
-void testGetTcpStatistics(void)
+static void testGetTcpStatistics(void)
 {
   if (gGetTcpStatistics) {
     DWORD apiReturn;
@@ -361,7 +361,7 @@ void testGetTcpStatistics(void)
   }
 }
 
-void testGetUdpStatistics(void)
+static void testGetUdpStatistics(void)
 {
   if (gGetUdpStatistics) {
     DWORD apiReturn;
@@ -379,7 +379,7 @@ void testGetUdpStatistics(void)
   }
 }
 
-void testGetTcpTable(void)
+static void testGetTcpTable(void)
 {
   if (gGetTcpTable) {
     DWORD apiReturn;
@@ -407,7 +407,7 @@ void testGetTcpTable(void)
   }
 }
 
-void testGetUdpTable(void)
+static void testGetUdpTable(void)
 {
   if (gGetUdpTable) {
     DWORD apiReturn;
Index: dlls/kernel/tests/pipe.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/pipe.c,v
retrieving revision 1.20
diff -u -p -r1.20 pipe.c
--- dlls/kernel/tests/pipe.c	5 Jun 2005 17:57:10 -0000	1.20
+++ dlls/kernel/tests/pipe.c	20 Jun 2005 14:38:32 -0000
@@ -297,7 +297,7 @@ static void test_CreateNamedPipe(int pip
     trace("test_CreateNamedPipe returning\n");
 }
 
-void test_CreateNamedPipe_instances_must_match(void)
+static void test_CreateNamedPipe_instances_must_match(void)
 {
     HANDLE hnp, hnp2;
 
Index: dlls/msvcrt/tests/headers.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/headers.c,v
retrieving revision 1.6
diff -u -p -r1.6 headers.c
--- dlls/msvcrt/tests/headers.c	20 Jun 2005 14:18:04 -0000	1.6
+++ dlls/msvcrt/tests/headers.c	20 Jun 2005 14:38:32 -0000
@@ -73,7 +73,7 @@
 #define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2)
 
 /************* Checking types ***************/
-void test_types(void)
+static void test_types(void)
 {
     CHECK_TYPE(wchar_t);
     CHECK_TYPE(wint_t);
@@ -97,7 +97,7 @@ void test_types(void)
 }
 
 /************* Checking structs ***************/
-void test_structs(void)
+static void test_structs(void)
 {
     CHECK_STRUCT(tm);
     CHECK_FIELD(tm, tm_sec);
Index: dlls/msvcrtd/tests/debug.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrtd/tests/debug.c,v
retrieving revision 1.1
diff -u -p -r1.1 debug.c
--- dlls/msvcrtd/tests/debug.c	18 May 2004 01:05:36 -0000	1.1
+++ dlls/msvcrtd/tests/debug.c	20 Jun 2005 14:38:32 -0000
@@ -34,7 +34,7 @@ static void * (*pMSVCRTD_operator_new_db
 #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
 #define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y)
 
-int init_functions(void)
+static int init_functions(void)
 {
   HMODULE hModule = LoadLibraryA("msvcrtd.dll");
   ok(hModule != NULL, "LoadLibraryA failed\n");
@@ -51,7 +51,7 @@ int init_functions(void)
 
 /**********************************************************************/
 
-void test_new(void)
+static void test_new(void)
 {
   void *mem;
 
Index: dlls/netapi32/tests/access.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/tests/access.c,v
retrieving revision 1.9
diff -u -p -r1.9 access.c
--- dlls/netapi32/tests/access.c	25 Mar 2005 10:24:45 -0000	1.9
+++ dlls/netapi32/tests/access.c	20 Jun 2005 14:38:32 -0000
@@ -64,7 +64,7 @@ static int init_access_tests(void)
     return 1;
 }
 
-void run_usergetinfo_tests(void)
+static void run_usergetinfo_tests(void)
 {
     NET_API_STATUS rc;
     PUSER_INFO_0 ui0 = NULL;
@@ -123,7 +123,7 @@ void run_usergetinfo_tests(void)
 }
 
 /* checks Level 1 of NetQueryDisplayInformation */
-void run_querydisplayinformation1_tests(void)
+static void run_querydisplayinformation1_tests(void)
 {
     PNET_DISPLAY_USER Buffer, rec;
     DWORD Result, EntryCount;
Index: dlls/netapi32/tests/apibuf.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/tests/apibuf.c,v
retrieving revision 1.6
diff -u -p -r1.6 apibuf.c
--- dlls/netapi32/tests/apibuf.c	21 Apr 2004 22:24:38 -0000	1.6
+++ dlls/netapi32/tests/apibuf.c	20 Jun 2005 14:38:32 -0000
@@ -35,7 +35,7 @@ static NET_API_STATUS (WINAPI *pNetApiBu
 static NET_API_STATUS (WINAPI *pNetApiBufferSize)(LPVOID,LPDWORD)=NULL;
 
 
-void run_apibuf_tests(void)
+static void run_apibuf_tests(void)
 {
     VOID *p;
     DWORD dwSize;
Index: dlls/rpcrt4/tests/rpc.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/tests/rpc.c,v
retrieving revision 1.6
diff -u -p -r1.6 rpc.c
--- dlls/rpcrt4/tests/rpc.c	23 Dec 2004 11:29:54 -0000	1.6
+++ dlls/rpcrt4/tests/rpc.c	20 Jun 2005 14:38:32 -0000
@@ -58,7 +58,7 @@ static BOOL Uuid_Comparison_Grid[11][11]
   { TRUE,  FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE  }
 };
 
-void UuidConversionAndComparison(void) {
+static void UuidConversionAndComparison(void) {
     CHAR strx[100], x;
     LPSTR str = strx;
     WCHAR wstrx[100], wx;
@@ -123,7 +123,7 @@ void UuidConversionAndComparison(void) {
     }
 }
 
-void TestDceErrorInqText (void)
+static void TestDceErrorInqText (void)
 {
     char bufferInvalid [1024];
     char buffer [1024]; /* The required size is not documented but would


More information about the wine-patches mailing list