regedit: Make some functions static.
This commit is contained in:
parent
492304128b
commit
5898a5c767
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue