From: <laz...@us...> - 2004-03-09 17:26:42
|
Update of /cvsroot/rtk/rtk/test/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9771/test/core Modified Files: error0.cpp string0.cpp Log Message: - Minor changes. - Fixed linux build (hopefully) Index: error0.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/test/core/error0.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** error0.cpp 21 Feb 2004 23:49:03 -0000 1.2 --- error0.cpp 9 Mar 2004 17:01:29 -0000 1.3 *************** *** 18,34 **** { TITLE(_R("Example code for error handling in Rtk")); - #if USE_EXCEPTIONS - try{ - MyFunc(1); - } - catch (Exception &e) { - rprintf("exception caught: '%s' with error code %d\n", e.ToString(), e.Code()); - } - #else int ret = MyFunc(1); if (ret < 0){ rprintf(_R("error caught: '%s' with error code %d\n"), error2str(ret), -ret); } - #endif return 0; } --- 18,25 ---- Index: string0.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/test/core/string0.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** string0.cpp 29 Feb 2004 20:53:25 -0000 1.13 --- string0.cpp 9 Mar 2004 17:01:29 -0000 1.14 *************** *** 70,77 **** int main(int argc, char* argv[]) { ! #if UNICODE TITLE(_R("Example source code for the String class (UNICODE)")); #else ! TITLE(_R("Example source code for the String class (MBCS)")); #endif STEP(String a); // this should be null --- 70,77 ---- int main(int argc, char* argv[]) { ! #ifdef UNICODE TITLE(_R("Example source code for the String class (UNICODE)")); #else ! TITLE(_R("Example source code for the String class (ASCII)")); #endif STEP(String a); // this should be null *************** *** 159,163 **** OUT("c.GetRefCount = %d", c.GetRefCount()); // Should be 2 (a&c) ! #if UNICODE // Now small cyrillic test - "Best regards to all RTK fans" //String sCyr = L"ÐоздÑав Ñвим ÑÑбиÑеÑима RTK-а\n"; --- 159,163 ---- OUT("c.GetRefCount = %d", c.GetRefCount()); // Should be 2 (a&c) ! #ifdef UNICODE // Now small cyrillic test - "Best regards to all RTK fans" //String sCyr = L"ÐоздÑав Ñвим ÑÑбиÑеÑима RTK-а\n"; |