From: Szasz P. <sp...@us...> - 2004-03-19 21:21:12
|
Update of /cvsroot/rtk/rtk/test/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3418/test/core Modified Files: array0.cpp Log Message: Some minor fix and added some _R macros to array0 test Index: array0.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/test/core/array0.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** array0.cpp 17 Mar 2004 19:37:08 -0000 1.2 --- array0.cpp 19 Mar 2004 21:11:18 -0000 1.3 *************** *** 23,28 **** if(f) a->qsort(f); for(uint n=0; n<a->GetCount(); n++) ! printf("ia[%d] = %d\n", n, a->GetAt(n)); ! printf("\n"); } --- 23,28 ---- if(f) a->qsort(f); for(uint n=0; n<a->GetCount(); n++) ! rprintf(_R("ia[%d] = %d\n"), n, a->GetAt(n)); ! rprintf(_R("\n")); } *************** *** 63,71 **** #ifdef _WIN32 DWORD t2 = GetTickCount(); ! printf("Time used: %d millisecs\n", t2-t1); #endif // print ! printf("IntArray %s count: %d internal size: %d\n\n", (prealloc ? "(preallocated)" : ""), ia.GetCount(), ia.GetSize()); } --- 63,71 ---- #ifdef _WIN32 DWORD t2 = GetTickCount(); ! rprintf(_R("Time used: %d millisecs\n"), t2-t1); #endif // print ! rprintf(_R("IntArray %s count: %d internal size: %d\n\n"), (prealloc ? _R("(preallocated)") : _R("")), ia.GetCount(), ia.GetSize()); } *************** *** 88,98 **** // Print out: ! STEP(printf("Original order:\n")); print(&ia); ! STEP(printf("Ascending order:\n")); print(&ia, cmp_int_a); ! STEP(printf("Descending order:\n")); print(&ia, cmp_int_d); --- 88,98 ---- // Print out: ! STEP(rprintf(_R("Original order:\n"))); print(&ia); ! STEP(rprintf(_R("Ascending order:\n"))); print(&ia, cmp_int_a); ! STEP(rprintf(_R("Descending order:\n"))); print(&ia, cmp_int_d); |