Module: wine Branch: master Commit: 5898a5c767dc0f560f6854e638bbb75a504dff0a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5898a5c767dc0f560f6854e638...
Author: Francois Gouget fgouget@free.fr Date: Mon Jan 26 12:53:12 2009 +0100
regedit: Make some functions static.
---
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;