mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Internationalization -- initial step, make _ return a std::string to prevent memory leaks
This commit is contained in:
@@ -140,14 +140,14 @@ inline int myclosesocket(SOCKET& hSocket)
|
||||
return ret;
|
||||
}
|
||||
#define closesocket(s) myclosesocket(s)
|
||||
|
||||
#if 0
|
||||
#ifndef GUI
|
||||
inline const char* _(const char* psz)
|
||||
{
|
||||
return psz;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -177,8 +177,8 @@ void RandAddSeed();
|
||||
void RandAddSeedPerfmon();
|
||||
int OutputDebugStringF(const char* pszFormat, ...);
|
||||
int my_snprintf(char* buffer, size_t limit, const char* format, ...);
|
||||
std::string strprintf(const char* format, ...);
|
||||
bool error(const char* format, ...);
|
||||
std::string strprintf(const std::string &format, ...);
|
||||
bool error(const std::string &format, ...);
|
||||
void LogException(std::exception* pex, const char* pszThread);
|
||||
void PrintException(std::exception* pex, const char* pszThread);
|
||||
void PrintExceptionContinue(std::exception* pex, const char* pszThread);
|
||||
|
||||
Reference in New Issue
Block a user