renamed qse_runmain() to qse_run_main()
This commit is contained in:
parent
0dd7cc2d65
commit
c09a0161eb
@ -1243,7 +1243,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
open_mpi (&mpi, argc, argv);
|
open_mpi (&mpi, argc, argv);
|
||||||
|
|
||||||
ret = qse_runmain (argc, argv, awk_main);
|
ret = qse_run_main(argc, argv, awk_main);
|
||||||
|
|
||||||
close_mpi (&mpi);
|
close_mpi (&mpi);
|
||||||
|
|
||||||
|
@ -2899,7 +2899,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
SSL_library_init ();
|
SSL_library_init ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = qse_runmain (argc, argv, httpd_main);
|
ret = qse_run_main (argc, argv, httpd_main);
|
||||||
|
|
||||||
#if defined(USE_SSL)
|
#if defined(USE_SSL)
|
||||||
/* ERR_remove_state() should be called for each thread if the application is thread */
|
/* ERR_remove_state() should be called for each thread if the application is thread */
|
||||||
|
@ -1036,7 +1036,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
ret = qse_runmain (argc, argv, httpd_main);
|
ret = qse_run_main (argc, argv, httpd_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
|
||||||
|
@ -1008,7 +1008,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
ret = qse_runmain (argc, argv, sed_main);
|
ret = qse_run_main (argc, argv, sed_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -631,7 +631,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, xli_main);
|
x = qse_run_main(argc, argv, xli_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
* @def qse_main
|
* @def qse_main
|
||||||
* The qse_main macro defines a main function wrapper for an underlying
|
* The qse_main macro defines a main function wrapper for an underlying
|
||||||
* platform. It is defined to @b main or @b wmain depending on the choice of
|
* platform. It is defined to @b main or @b wmain depending on the choice of
|
||||||
* the default character type #qse_char_t. Combined with the qse_runmain()
|
* the default character type #qse_char_t. Combined with the qse_run_main()
|
||||||
* function, it provides a consistant view to the main function.
|
* function, it provides a consistant view to the main function.
|
||||||
*
|
*
|
||||||
* @typedef qse_achar_t
|
* @typedef qse_achar_t
|
||||||
@ -69,16 +69,16 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The qse_runmain_handler_t type defines the actual function to be
|
* The qse_run_main_handler_t type defines the actual function to be
|
||||||
* executed by qse_runmain(). Unlike the standard main(), it is passed
|
* executed by qse_run_main(). Unlike the standard main(), it is passed
|
||||||
* arguments in the #qse_char_t type.
|
* arguments in the #qse_char_t type.
|
||||||
*/
|
*/
|
||||||
typedef int (*qse_runmain_handler_t) (
|
typedef int (*qse_run_main_handler_t) (
|
||||||
int argc,
|
int argc,
|
||||||
qse_char_t* argv[]
|
qse_char_t* argv[]
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef int (*qse_runmainwithenv_handler_t) (
|
typedef int (*qse_run_main_with_env_handler_t) (
|
||||||
int argc,
|
int argc,
|
||||||
qse_char_t* argv[],
|
qse_char_t* argv[],
|
||||||
qse_char_t* envp[]
|
qse_char_t* envp[]
|
||||||
@ -89,25 +89,25 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The qse_runmain() function helps to invoke a main function independent of
|
* The qse_run_main() function helps to invoke a main function independent of
|
||||||
* the character mode configured for the library.
|
* the character mode configured for the library.
|
||||||
*/
|
*/
|
||||||
QSE_EXPORT int qse_runmain (
|
QSE_EXPORT int qse_run_main (
|
||||||
int argc,
|
int argc,
|
||||||
qse_achar_t* argv[],
|
qse_achar_t* argv[],
|
||||||
qse_runmain_handler_t handler
|
qse_run_main_handler_t handler
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The qse_runmainwithenv() function helps to invoke a main function
|
* The qse_run_main_with_env() function helps to invoke a main function
|
||||||
* independent of the character mode configured for the library providing
|
* independent of the character mode configured for the library providing
|
||||||
* the enviroment list.
|
* the enviroment list.
|
||||||
*/
|
*/
|
||||||
QSE_EXPORT int qse_runmainwithenv (
|
QSE_EXPORT int qse_run_main_with_env (
|
||||||
int argc,
|
int argc,
|
||||||
qse_achar_t* argv[],
|
qse_achar_t* argv[],
|
||||||
qse_achar_t* envp[],
|
qse_achar_t* envp[],
|
||||||
qse_runmainwithenv_handler_t handler
|
qse_run_main_with_env_handler_t handler
|
||||||
);
|
);
|
||||||
|
|
||||||
/* TODO: support more weird main functions. for example,
|
/* TODO: support more weird main functions. for example,
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
App (Mmgr* mmgr) QSE_CPP_NOEXCEPT;
|
App (Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT;
|
||||||
virtual ~App () QSE_CPP_NOEXCEPT;
|
virtual ~App () QSE_CPP_NOEXCEPT;
|
||||||
|
|
||||||
int daemonize (bool chdir_to_root = true, int fork_count = 1, bool root_only = false) QSE_CPP_NOEXCEPT;
|
int daemonize (bool chdir_to_root = true, int fork_count = 1, bool root_only = false) QSE_CPP_NOEXCEPT;
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
#include "mem-prv.h"
|
#include "mem-prv.h"
|
||||||
|
|
||||||
int qse_runmain (
|
int qse_run_main (
|
||||||
int argc, qse_achar_t* argv[], qse_runmain_handler_t handler)
|
int argc, qse_achar_t* argv[], qse_run_main_handler_t handler)
|
||||||
{
|
{
|
||||||
#if (defined(QSE_ACHAR_IS_MCHAR) && defined(QSE_CHAR_IS_MCHAR)) || \
|
#if (defined(QSE_ACHAR_IS_MCHAR) && defined(QSE_CHAR_IS_MCHAR)) || \
|
||||||
(defined(QSE_ACHAR_IS_WCHAR) && defined(QSE_CHAR_IS_WCHAR))
|
(defined(QSE_ACHAR_IS_WCHAR) && defined(QSE_CHAR_IS_WCHAR))
|
||||||
@ -71,9 +71,9 @@ oops:
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int qse_runmainwithenv (
|
int qse_run_main_with_env (
|
||||||
int argc, qse_achar_t* argv[],
|
int argc, qse_achar_t* argv[],
|
||||||
qse_achar_t* envp[], qse_runmainwithenv_handler_t handler)
|
qse_achar_t* envp[], qse_run_main_with_env_handler_t handler)
|
||||||
{
|
{
|
||||||
#if (defined(QSE_ACHAR_IS_MCHAR) && defined(QSE_CHAR_IS_MCHAR)) || \
|
#if (defined(QSE_ACHAR_IS_MCHAR) && defined(QSE_CHAR_IS_MCHAR)) || \
|
||||||
(defined(QSE_ACHAR_IS_WCHAR) && defined(QSE_CHAR_IS_WCHAR))
|
(defined(QSE_ACHAR_IS_WCHAR) && defined(QSE_CHAR_IS_WCHAR))
|
||||||
|
@ -158,7 +158,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_awk_sample_locale ();
|
init_awk_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, awk_main);
|
x = qse_run_main (argc, argv, awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
x = qse_runmain (argc,argv,awk_main);
|
x = qse_run_main (argc,argv,awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -486,7 +486,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = qse_runmain (argc, argv, awk_main);
|
ret = qse_run_main (argc, argv, awk_main);
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
WSACleanup ();
|
WSACleanup ();
|
||||||
|
@ -112,7 +112,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
x = qse_runmain (argc,argv,awk_main);
|
x = qse_run_main (argc,argv,awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
x = qse_runmain (argc,argv,awk_main);
|
x = qse_run_main (argc,argv,awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
x = qse_runmain (argc,argv,awk_main);
|
x = qse_run_main (argc,argv,awk_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmainwithenv (argc, argv, envp, test_main);
|
x = qse_run_mainwithenv (argc, argv, envp, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, path_main);
|
x = qse_run_main (argc, argv, path_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, rex_main);
|
x = qse_run_main (argc, argv, rex_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
SSL_library_init ();
|
SSL_library_init ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = qse_runmain (argc, argv, httpd_main);
|
ret = qse_run_main (argc, argv, httpd_main);
|
||||||
|
|
||||||
#if defined(HAVE_SSL)
|
#if defined(HAVE_SSL)
|
||||||
/*ERR_remove_state ();*/
|
/*ERR_remove_state ();*/
|
||||||
|
@ -52,7 +52,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_sed_sample_locale ();
|
init_sed_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, sed_main);
|
x = qse_run_main (argc, argv, sed_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_sed_sample_locale ();
|
init_sed_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, sed_main);
|
x = qse_run_main (argc, argv, sed_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
int x;
|
int x;
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
init_sed_sample_locale ();
|
init_sed_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, sed_main);
|
x = qse_run_main (argc, argv, sed_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,6 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
init_sed_sample_locale ();
|
init_sed_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, sed_main);
|
x = qse_run_main (argc, argv, sed_main);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -68,6 +68,6 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
init_sed_sample_locale ();
|
init_sed_sample_locale ();
|
||||||
x = qse_runmain (argc, argv, sed_main);
|
x = qse_run_main (argc, argv, sed_main);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
|
|
||||||
x = qse_runmain (argc, argv, dir_main);
|
x = qse_run_main (argc, argv, dir_main);
|
||||||
|
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
|
|
||||||
x = qse_runmain (argc, argv, fs_main);
|
x = qse_run_main (argc, argv, fs_main);
|
||||||
|
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ int main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
|
|
||||||
x = qse_runmain (argc, argv, fs_main);
|
x = qse_run_main (argc, argv, fs_main);
|
||||||
|
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ int main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
|
|
||||||
x = qse_runmain (argc, argv, fs_main);
|
x = qse_run_main (argc, argv, fs_main);
|
||||||
|
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
|
|
||||||
x = qse_runmain (argc, argv, glob_main);
|
x = qse_run_main (argc, argv, glob_main);
|
||||||
|
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
ret = qse_runmain (argc, argv, test_main);
|
ret = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -101,7 +101,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
/*qse_setdflcmgrbyid (QSE_CMGR_SLMB);*/
|
||||||
#endif
|
#endif
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
ret = qse_runmain (argc, argv, test_main);
|
ret = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -103,7 +103,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qse_open_stdsios ();
|
qse_open_stdsios ();
|
||||||
x = qse_runmain (argc, argv, test_main);
|
x = qse_run_main (argc, argv, test_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
|
@ -93,7 +93,7 @@ int qse_main (int argc, qse_achar_t* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
x = qse_runmain (argc,argv,env_main);
|
x = qse_run_main (argc,argv,env_main);
|
||||||
qse_close_stdsios ();
|
qse_close_stdsios ();
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user