ole32: Declare some functions static

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Jan 18 15:50:56 CST 2007


Changelog:
    ole32: Declare some functions static.

diff -urN a/dlls/ole32/classmoniker.c b/dlls/ole32/classmoniker.c
--- a/dlls/ole32/classmoniker.c	2006-10-20 18:08:04.000000000 +0100
+++ b/dlls/ole32/classmoniker.c	2007-01-18 21:15:14.000000000 +0000
@@ -694,7 +694,7 @@
 /******************************************************************************
  *         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 -urN a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c
--- a/dlls/ole32/errorinfo.c	2007-01-11 15:27:49.000000000 +0000
+++ b/dlls/ole32/errorinfo.c	2007-01-18 21:17:58.000000000 +0000
@@ -167,7 +167,7 @@
 #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 -urN a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
--- a/dlls/ole32/hglobalstream.c	2007-01-10 12:33:58.000000000 +0000
+++ b/dlls/ole32/hglobalstream.c	2007-01-18 21:18:51.000000000 +0000
@@ -651,7 +651,7 @@
  *    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 -urN a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c
--- a/dlls/ole32/itemmoniker.c	2006-10-20 18:08:04.000000000 +0100
+++ b/dlls/ole32/itemmoniker.c	2007-01-18 21:23:59.000000000 +0000
@@ -97,8 +97,8 @@
 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 @@
 /******************************************************************************
  *         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 @@
 /******************************************************************************
  *        ItemMoniker_Destroy (local function)
  *******************************************************************************/
-HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This)
+static HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This)
 {
     TRACE("(%p)\n",This);
 
diff -urN a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c
--- a/dlls/ole32/memlockbytes.c	2006-11-22 12:46:28.000000000 +0000
+++ b/dlls/ole32/memlockbytes.c	2007-01-18 21:34:07.000000000 +0000
@@ -81,11 +81,11 @@
 /*
  * 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 @@
  *    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 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-patches mailing list