From 953bb70a5691fb8ac887a0b4c4e77febd381431e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 18 Sep 2018 09:02:00 +0000 Subject: [PATCH] fixed minor flaws in some sample programs --- qse/samples/cmn/main02.c | 2 +- qse/samples/cmn/str02.cpp | 2 +- qse/samples/si/tcpsvr01.cpp | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/qse/samples/cmn/main02.c b/qse/samples/cmn/main02.c index 5960e676..4864ccbd 100644 --- a/qse/samples/cmn/main02.c +++ b/qse/samples/cmn/main02.c @@ -49,7 +49,7 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) #endif qse_open_stdsios (); - x = qse_run_mainwithenv (argc, argv, envp, test_main); + x = qse_run_main_with_env (argc, argv, envp, test_main); qse_close_stdsios (); return x; } diff --git a/qse/samples/cmn/str02.cpp b/qse/samples/cmn/str02.cpp index 537f3d54..7c6e9041 100644 --- a/qse/samples/cmn/str02.cpp +++ b/qse/samples/cmn/str02.cpp @@ -10,7 +10,7 @@ void t1 () QSE::String* z = new QSE::String(); { - QSE::String x (&heap_mmgr, QSE_T("this is a sample string")); + QSE::String x (QSE_T("this is a sample string"), &heap_mmgr); QSE::String y (x); *z = y; diff --git a/qse/samples/si/tcpsvr01.cpp b/qse/samples/si/tcpsvr01.cpp index 70ceaac2..b9f63564 100644 --- a/qse/samples/si/tcpsvr01.cpp +++ b/qse/samples/si/tcpsvr01.cpp @@ -15,11 +15,12 @@ #include #include - - -#include -#include #include +#include + +#if defined(__linux) +#include +#endif class ClientHandler {