Various fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-11-25 12:01:23 +00:00
parent 35c9d9582b
commit 6164d85e89
12 changed files with 68 additions and 59 deletions

View File

@@ -923,6 +923,15 @@ int wxString::Printf(const char *pszFormat, ...)
int wxString::PrintfV(const char* pszFormat, va_list argptr)
{
#ifdef __BORLANDC__
static char s_szScratch[1024];
int iLen = vsprintf(s_szScratch, pszFormat, argptr);
AllocBeforeWrite(iLen);
strcpy(m_pchData, s_szScratch);
return iLen;
#else
#ifdef __WXMSW__
#ifdef _MSC_VER
#define wxVsprintf _vsnprintf
@@ -972,6 +981,7 @@ int wxString::PrintfV(const char* pszFormat, va_list argptr)
free(buffer);
return iLen;
#endif
}
// ----------------------------------------------------------------------------