Unicode fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-03-24 12:12:21 +00:00
parent d15a450d54
commit 846b6d921a
63 changed files with 438 additions and 495 deletions

View File

@@ -1146,7 +1146,10 @@ void wxDebugFree(void * buf, bool WXUNUSED(isVect) )
// Trace: send output to the current debugging stream
void wxTrace(const wxChar *fmt ...)
{
va_list ap;
#if 1
wxFAIL_MSG(wxT("wxTrace is now obsolete. Please use wxDebugXXX instead."));
#else
va_list ap;
static wxChar buffer[512];
va_start(ap, fmt);
@@ -1174,11 +1177,15 @@ void wxTrace(const wxChar *fmt ...)
#else
fprintf(stderr, buffer);
#endif
#endif
}
// Trace with level
void wxTraceLevel(int level, const wxChar *fmt ...)
{
#if 1
wxFAIL_MSG(wxT("wxTrace is now obsolete. Please use wxDebugXXX instead."));
#else
if (wxDebugContext::GetLevel() < level)
return;
@@ -1188,7 +1195,7 @@ void wxTraceLevel(int level, const wxChar *fmt ...)
va_start(ap, fmt);
#ifdef __WXMSW__
wvsprintf(buffer,fmt,ap) ;
wxWvsprintf(buffer,fmt,ap) ;
#else
vsprintf(buffer,fmt,ap) ;
#endif
@@ -1210,6 +1217,7 @@ void wxTraceLevel(int level, const wxChar *fmt ...)
#else
fprintf(stderr, buffer);
#endif
#endif
}
#else // wxUSE_MEMORY_TRACING && defined(__WXDEBUG__)