Francois Gouget : browseui/tests: Make some functions static.

Alexandre Julliard julliard at winehq.org
Mon Dec 29 08:47:30 CST 2008


Module: wine
Branch: master
Commit: cbf19c30e045d56297b46c45dbac1e0dda465687
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cbf19c30e045d56297b46c45dbac1e0dda465687

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Dec 28 10:37:40 2008 +0100

browseui/tests: Make some functions static.

---

 dlls/browseui/tests/autocomplete.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/dlls/browseui/tests/autocomplete.c b/dlls/browseui/tests/autocomplete.c
index 966721c..9442e6d 100644
--- a/dlls/browseui/tests/autocomplete.c
+++ b/dlls/browseui/tests/autocomplete.c
@@ -45,7 +45,7 @@
         ok(FALSE, #exp " failed: %x\n", res); \
 }
 
-LPWSTR strdup_AtoW(LPCSTR str)
+static LPWSTR strdup_AtoW(LPCSTR str)
 {
     int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
     LPWSTR wstr = (LPWSTR)CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
@@ -86,14 +86,14 @@ static TestACL *TestACL_Constructor(int limit, const char **strings)
     return This;
 }
 
-ULONG STDMETHODCALLTYPE TestACL_AddRef(IEnumString *iface)
+static ULONG STDMETHODCALLTYPE TestACL_AddRef(IEnumString *iface)
 {
     TestACL *This = (TestACL *)iface;
     trace("ACL(%p): addref (%d)\n", This, This->ref+1);
     return InterlockedIncrement(&This->ref);
 }
 
-ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
+static ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
 {
     TestACL *This = (TestACL *)iface;
     ULONG res;
@@ -103,7 +103,7 @@ ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
     return res;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid, LPVOID *ppvOut)
+static HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid, LPVOID *ppvOut)
 {
     TestACL *This = (TestACL *)iface;
     *ppvOut = NULL;
@@ -129,7 +129,7 @@ HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid,
     return E_NOINTERFACE;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
+static HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
 {
     TestACL *This = (TestACL *)iface;
     ULONG i;
@@ -150,19 +150,19 @@ HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR
     return S_FALSE;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_Skip(IEnumString *iface, ULONG celt)
+static HRESULT STDMETHODCALLTYPE TestACL_Skip(IEnumString *iface, ULONG celt)
 {
     ok(FALSE, "Unexpected call to TestACL_Skip\n");
     return E_NOTIMPL;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_Clone(IEnumString *iface, IEnumString **out)
+static HRESULT STDMETHODCALLTYPE TestACL_Clone(IEnumString *iface, IEnumString **out)
 {
     ok(FALSE, "Unexpected call to TestACL_Clone\n");
     return E_OUTOFMEMORY;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
+static HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
 {
     TestACL *This = (TestACL *)iface;
     trace("ACL(%p): Reset\n", This);
@@ -170,7 +170,7 @@ HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
     return S_OK;
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_Expand(IACList *iface, LPCOLESTR str)
+static HRESULT STDMETHODCALLTYPE TestACL_Expand(IACList *iface, LPCOLESTR str)
 {
     TestACL *This = impl_from_IACList(iface);
     trace("ACL(%p): Expand\n", impl_from_IACList(iface));
@@ -190,17 +190,17 @@ IEnumStringVtbl TestACLVtbl =
     TestACL_Clone
 };
 
-ULONG STDMETHODCALLTYPE TestACL_ACList_AddRef(IACList *iface)
+static ULONG STDMETHODCALLTYPE TestACL_ACList_AddRef(IACList *iface)
 {
     return TestACL_AddRef((IEnumString *)impl_from_IACList(iface));
 }
 
-ULONG STDMETHODCALLTYPE TestACL_ACList_Release(IACList *iface)
+static ULONG STDMETHODCALLTYPE TestACL_ACList_Release(IACList *iface)
 {
     return TestACL_Release((IEnumString *)impl_from_IACList(iface));
 }
 
-HRESULT STDMETHODCALLTYPE TestACL_ACList_QueryInterface(IACList *iface, REFIID iid, LPVOID *ppvout)
+static HRESULT STDMETHODCALLTYPE TestACL_ACList_QueryInterface(IACList *iface, REFIID iid, LPVOID *ppvout)
 {
     return TestACL_QueryInterface((IEnumString *)impl_from_IACList(iface), iid, ppvout);
 }




More information about the wine-cvs mailing list