regedit: Make some functions static.

Francois Gouget fgouget at free.fr
Mon Jan 26 05:53:12 CST 2009


---
 programs/regedit/childwnd.c |    2 +-
 programs/regedit/regproc.c  |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
index 6f9d487..74c8b66 100644
--- a/programs/regedit/childwnd.c
+++ b/programs/regedit/childwnd.c
@@ -37,7 +37,7 @@ static int last_split;
  * Local module support methods
  */
 
-LPCWSTR GetRootKeyName(HKEY hRootKey)
+static LPCWSTR GetRootKeyName(HKEY hRootKey)
 {
     if(hRootKey == HKEY_CLASSES_ROOT)
         return reg_class_namesW[INDEX_HKEY_CLASSES_ROOT];
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 018a58e..47f9832 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -89,7 +89,7 @@ WCHAR* GetWideString(const char* strA)
  * Allocates memory and converts input from multibyte to wide chars
  * Returned string must be freed by the caller
  */
-WCHAR* GetWideStringN(const char* strA, int chars, DWORD *len)
+static WCHAR* GetWideStringN(const char* strA, int chars, DWORD *len)
 {
     if(strA)
     {
@@ -128,7 +128,7 @@ char* GetMultiByteString(const WCHAR* strW)
  * Allocates memory and converts input from wide chars to multibyte
  * Returned string must be freed by the caller
  */
-char* GetMultiByteStringN(const WCHAR* strW, int chars, DWORD* len)
+static char* GetMultiByteStringN(const WCHAR* strW, int chars, DWORD* len)
 {
     if(strW)
     {
@@ -611,7 +611,7 @@ static void processRegEntry(WCHAR* stdInput, BOOL isUnicode)
  * Parameters:
  *   in - input stream to read from
  */
-void processRegLinesA(FILE *in)
+static void processRegLinesA(FILE *in)
 {
     LPSTR line           = NULL;  /* line read from input stream */
     ULONG lineSize       = REG_VAL_BUF_SIZE;
@@ -726,7 +726,7 @@ void processRegLinesA(FILE *in)
     HeapFree(GetProcessHeap(), 0, line);
 }
 
-void processRegLinesW(FILE *in)
+static void processRegLinesW(FILE *in)
 {
     WCHAR* buf           = NULL;  /* line read from input stream */
     ULONG lineSize       = REG_VAL_BUF_SIZE;
-- 
1.5.6.5




More information about the wine-patches mailing list