shell32: Declare some functions static

Andrew Talbot andrew.talbot at talbotville.com
Sat Jan 24 10:04:27 CST 2009


Changelog:
    shell32: Declare some functions static.

diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
index bee7166..5dc07a1 100644
--- a/dlls/shell32/pidl.c
+++ b/dlls/shell32/pidl.c
@@ -55,6 +55,9 @@ WINE_DECLARE_DEBUG_CHANNEL(shell);
 extern LPVOID WINAPI Alloc(INT);
 extern BOOL WINAPI Free(LPVOID);
 
+static LPSTR _ILGetSTextPointer(LPCITEMIDLIST pidl);
+static LPWSTR _ILGetTextPointerW(LPCITEMIDLIST pidl);
+
 /*************************************************************************
  * ILGetDisplayNameEx        [SHELL32.186]
  *
@@ -1901,7 +1904,7 @@ LPPIDLDATA _ILGetDataPointer(LPCITEMIDLIST pidl)
  *  _ILGetTextPointerW()
  * gets a pointer to the unicode long filename string stored in the pidl
  */
-LPWSTR _ILGetTextPointerW(LPCITEMIDLIST pidl)
+static LPWSTR _ILGetTextPointerW(LPCITEMIDLIST pidl)
 {
     /* TRACE(pidl,"(pidl%p)\n", pidl);*/
 
@@ -1994,7 +1997,7 @@ LPSTR _ILGetTextPointer(LPCITEMIDLIST pidl)
  *  _ILGetSTextPointer()
  * gets a pointer to the short filename string stored in the pidl
  */
-LPSTR _ILGetSTextPointer(LPCITEMIDLIST pidl)
+static LPSTR _ILGetSTextPointer(LPCITEMIDLIST pidl)
 {
     /* TRACE(pidl,"(pidl%p)\n", pidl); */
 
diff --git a/dlls/shell32/pidl.h b/dlls/shell32/pidl.h
index 65105ef..0a84c4c 100644
--- a/dlls/shell32/pidl.h
+++ b/dlls/shell32/pidl.h
@@ -254,8 +254,6 @@ LPITEMIDLIST    _ILCreateEntireNetwork  (void);
  */
 LPPIDLDATA	_ILGetDataPointer	(LPCITEMIDLIST);
 LPSTR		_ILGetTextPointer	(LPCITEMIDLIST);
-LPWSTR		_ILGetTextPointerW	(LPCITEMIDLIST);
-LPSTR		_ILGetSTextPointer	(LPCITEMIDLIST);
 IID		*_ILGetGUIDPointer	(LPCITEMIDLIST pidl);
 FileStructW     *_ILGetFileStructW      (LPCITEMIDLIST pidl);
 
diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c
index 0cb4272..4d2aacd 100644
--- a/dlls/shell32/xdg.c
+++ b/dlls/shell32/xdg.c
@@ -159,7 +159,7 @@ static char *load_path(int path_id)
  *
  * The paths are guaranteed to start with '/'
  */
-const char *XDG_GetPath(int path_id)
+static const char *XDG_GetPath(int path_id)
 {
     if (path_id >= PATHS_COUNT || path_id < 0)
     {
diff --git a/dlls/shell32/xdg.h b/dlls/shell32/xdg.h
index 4ff2dba..daa864f 100644
--- a/dlls/shell32/xdg.h
+++ b/dlls/shell32/xdg.h
@@ -25,7 +25,6 @@
 #define XDG_CONFIG_DIRS 3
 #define XDG_CACHE_HOME 4
 
-const char *XDG_GetPath(int path_id);
 char *XDG_BuildPath(int root_id, const char *subpath);
 int XDG_MakeDirs(const char *path);
 



More information about the wine-patches mailing list