fixed wrong block ending in main.c

This commit is contained in:
hyung-hwan 2011-03-16 09:23:37 +00:00
parent 8869368a02
commit 680c45e9ed

View File

@ -27,12 +27,12 @@ int qse_runmain (
int argc, qse_achar_t* argv[], qse_runmain_handler_t handler) int argc, qse_achar_t* argv[], qse_runmain_handler_t handler)
{ {
setlocale (LC_ALL, ""); /* TODO: remove dependency on setlocale */ setlocale (LC_ALL, ""); /* TODO: remove dependency on setlocale */
#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))
{ {
return handler (argc, (qse_char_t**)argv); return handler (argc, (qse_char_t**)argv);
} }
#else #else
{ {
int i, ret; int i, ret;
@ -84,7 +84,8 @@ int qse_runmain (
} }
QSE_MMGR_FREE (mmgr, v); QSE_MMGR_FREE (mmgr, v);
return ret; return ret;
}
#endif #endif
} }
@ -92,9 +93,9 @@ int qse_runmainwithenv (
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_runmainwithenv_handler_t handler)
{ {
setlocale (LC_ALL, ""); /* TODO: remove dependency on setlocale */ setlocale (LC_ALL, ""); /* TODO: remove dependency on setlocale */
#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))
{ {
return handler (argc, (qse_char_t**)argv, (qse_char_t**)envp); return handler (argc, (qse_char_t**)argv, (qse_char_t**)envp);
@ -158,6 +159,7 @@ int qse_runmainwithenv (
QSE_MMGR_FREE (mmgr, v); QSE_MMGR_FREE (mmgr, v);
return ret; return ret;
} }
#endif #endif
} }