Andrew Talbot : ole32: Declare some functions static.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 19 06:29:27 CST 2007


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Jan 18 21:50:56 2007 +0000

ole32: Declare some functions static.

---

 dlls/ole32/classmoniker.c  |    2 +-
 dlls/ole32/errorinfo.c     |    2 +-
 dlls/ole32/hglobalstream.c |    2 +-
 dlls/ole32/itemmoniker.c   |    8 ++++----
 dlls/ole32/memlockbytes.c  |   10 +++++-----
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/dlls/ole32/classmoniker.c b/dlls/ole32/classmoniker.c
index 8bfafe8..66677d6 100644
--- a/dlls/ole32/classmoniker.c
+++ b/dlls/ole32/classmoniker.c
@@ -694,7 +694,7 @@ static const IROTDataVtbl ROTDataVtbl =
 /******************************************************************************
  *         ClassMoniker_Construct (local function)
  *******************************************************************************/
-HRESULT WINAPI ClassMoniker_Construct(ClassMoniker* This, REFCLSID rclsid)
+static HRESULT WINAPI ClassMoniker_Construct(ClassMoniker* This, REFCLSID rclsid)
 {
     TRACE("(%p,%s)\n",This,debugstr_guid(rclsid));
 
diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c
index c1789ef..01dc305 100644
--- a/dlls/ole32/errorinfo.c
+++ b/dlls/ole32/errorinfo.c
@@ -167,7 +167,7 @@ static inline ErrorInfoImpl *impl_from_I
 #define _ICreateErrorInfo_(This)	(ICreateErrorInfo*)&(This->lpvtcei)
 #define _ISupportErrorInfo_(This)	(ISupportErrorInfo*)&(This->lpvtsei)
 
-IErrorInfo * IErrorInfoImpl_Constructor(void)
+static IErrorInfo * IErrorInfoImpl_Constructor(void)
 {
 	ErrorInfoImpl * ei = HeapAlloc(GetProcessHeap(), 0, sizeof(ErrorInfoImpl));
 	if (ei)
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
index 40a0dbf..d98c0c5 100644
--- a/dlls/ole32/hglobalstream.c
+++ b/dlls/ole32/hglobalstream.c
@@ -651,7 +651,7 @@ static const IStreamVtbl HGLOBALStreamIm
  *    fDeleteOnRelease - Flag set to TRUE if the HGLOBAL will be released
  *                       when the IStream object is destroyed.
  */
-HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
+static HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
 		HGLOBAL  hGlobal,
 		BOOL     fDeleteOnRelease)
 {
diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c
index 110e311..2a8ed22 100644
--- a/dlls/ole32/itemmoniker.c
+++ b/dlls/ole32/itemmoniker.c
@@ -97,8 +97,8 @@ static HRESULT WINAPI ItemMonikerImpl_Pa
 static HRESULT WINAPI ItemMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys);
 
 /* Local function used by ItemMoniker implementation */
-HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* iface, LPCOLESTR lpszDelim,LPCOLESTR lpszPathName);
-HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* iface);
+static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* iface, LPCOLESTR lpszDelim,LPCOLESTR lpszPathName);
+static HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* iface);
 
 /********************************************************************************/
 /* IROTData prototype functions                                                 */
@@ -388,7 +388,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMa
 /******************************************************************************
  *         ItemMoniker_Construct (local function)
  *******************************************************************************/
-HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDelim,LPCOLESTR lpszItem)
+static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDelim,LPCOLESTR lpszItem)
 {
 
     int sizeStr1=lstrlenW(lpszItem), sizeStr2;
@@ -426,7 +426,7 @@ HRESULT WINAPI ItemMonikerImpl_Construct
 /******************************************************************************
  *        ItemMoniker_Destroy (local function)
  *******************************************************************************/
-HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This)
+static HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This)
 {
     TRACE("(%p)\n",This);
 
diff --git a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c
index ef02011..18761fb 100644
--- a/dlls/ole32/memlockbytes.c
+++ b/dlls/ole32/memlockbytes.c
@@ -81,11 +81,11 @@ typedef struct HGLOBALLockBytesImpl HGLO
 /*
  * Method definition for the HGLOBALLockBytesImpl class.
  */
-HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(
+static HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(
     HGLOBAL  hGlobal,
     BOOL     fDeleteOnRelease);
 
-void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This);
+static void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This);
 
 static HRESULT WINAPI HGLOBALLockBytesImpl_SetSize( ILockBytes* iface, ULARGE_INTEGER libNewSize );
 
@@ -196,8 +196,8 @@ HRESULT WINAPI GetHGlobalFromILockBytes(
  *    fDeleteOnRelease [ I] Flag set to TRUE if the HGLOBAL will be released
  *                          when the IStream object is destroyed.
  */
-HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(HGLOBAL hGlobal,
-                                                     BOOL    fDeleteOnRelease)
+static HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(HGLOBAL hGlobal,
+                                                            BOOL    fDeleteOnRelease)
 {
   HGLOBALLockBytesImpl* newLockBytes;
   newLockBytes = HeapAlloc(GetProcessHeap(), 0, sizeof(HGLOBALLockBytesImpl));
@@ -244,7 +244,7 @@ HGLOBALLockBytesImpl* HGLOBALLockBytesIm
  * HGLOBALLockBytesImpl class. The pointer passed-in to this function will be
  * freed and will not be valid anymore.
  */
-void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This)
+static void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This)
 {
   /*
    * Release the HGlobal if the constructor asked for that.




More information about the wine-cvs mailing list