1
0
forked from mirrors/0ad

huge cleanup and conversion of most string handling (especially paths) to unicode

please note: format strings must be %hs for char* arguments and %ls for
wchar_t*

This was SVN commit r7161.
This commit is contained in:
janwas
2009-11-03 21:46:35 +00:00
parent a46f3432f3
commit 8a52113e60
317 changed files with 2517 additions and 2588 deletions
+6 -6
View File
@@ -143,7 +143,7 @@ static size_t num_clients;
static TimerClient* clients;
TimerClient* timer_AddClient(TimerClient* tc, const char* description)
TimerClient* timer_AddClient(TimerClient* tc, const wchar_t* description)
{
tc->sum.SetToZero();
@@ -167,8 +167,8 @@ void timer_BillClient(TimerClient* tc, TimerUnit t0, TimerUnit t1)
void timer_DisplayClientTotals()
{
debug_printf("TIMER TOTALS (%lu clients)\n", (unsigned long)num_clients);
debug_printf("-----------------------------------------------------\n");
debug_printf(L"TIMER TOTALS (%lu clients)\n", (unsigned long)num_clients);
debug_printf(L"-----------------------------------------------------\n");
while(clients)
{
@@ -178,9 +178,9 @@ void timer_DisplayClientTotals()
clients = tc->next;
num_clients--;
const std::string duration = tc->sum.ToString();
debug_printf(" %s: %s (%lux)\n", tc->description, duration.c_str(), (unsigned long)tc->num_calls);
const std::wstring duration = tc->sum.ToString();
debug_printf(L" %ls: %ls (%lux)\n", tc->description, duration.c_str(), (unsigned long)tc->num_calls);
}
debug_printf("-----------------------------------------------------\n");
debug_printf(L"-----------------------------------------------------\n");
}