fixed minor flaws in some sample programs

This commit is contained in:
hyung-hwan 2018-09-18 09:02:00 +00:00
parent 9f07886166
commit 953bb70a56
3 changed files with 7 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -15,11 +15,12 @@
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <sys/wait.h>
#if defined(__linux)
#include <sys/prctl.h>
#endif
class ClientHandler
{