fixed wrong indentation

This commit is contained in:
hyung-hwan 2012-10-15 09:46:29 +00:00
parent b907296f4a
commit d9b42ca785
18 changed files with 34 additions and 37 deletions

View File

@ -17,7 +17,6 @@
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with QSE. If not, see <http://www.gnu.org/licenses/>. License along with QSE. If not, see <http://www.gnu.org/licenses/>.
*/ */
#if 0
#include <qse/sed/std.h> #include <qse/sed/std.h>
#include <qse/cmn/str.h> #include <qse/cmn/str.h>
@ -1038,6 +1037,4 @@ int qse_main (int argc, qse_achar_t* argv[])
return qse_runmain (argc, argv, sed_main); return qse_runmain (argc, argv, sed_main);
} }
#endif
#include "../../samples/cmn/task01.c"

View File

@ -29,7 +29,7 @@ static int test1 (void)
int main () int main ()
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -8,7 +8,7 @@
# include <windows.h> # include <windows.h>
#endif #endif
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
qse_char_t buf[19]; qse_char_t buf[19];
int bases[] = { 2, 8, 10, 16 }; int bases[] = { 2, 8, 10, 16 };
@ -54,10 +54,10 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
return 0; return 0;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {
@ -74,6 +74,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }

View File

@ -9,7 +9,7 @@
#endif #endif
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
qse_char_t buf[129]; qse_char_t buf[129];
int bases[] = { 2, 8, 10, 16 }; int bases[] = { 2, 8, 10, 16 };
@ -74,10 +74,10 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
return 0; return 0;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {
@ -94,6 +94,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }

View File

@ -76,7 +76,7 @@ int fs_main (int argc, qse_char_t* argv[])
int qse_main (int argc, qse_achar_t* argv[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -39,7 +39,7 @@ static int glob_main (int argc, qse_char_t* argv[])
int qse_main (int argc, qse_achar_t* argv[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -178,7 +178,7 @@ static int test_ipad6 (void)
return 0; return 0;
} }
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
test_ipad4 (); test_ipad4 ();
qse_printf (QSE_T("==============\n")); qse_printf (QSE_T("==============\n"));
@ -186,10 +186,10 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
return 0; return 0;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {
@ -206,6 +206,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }

View File

@ -23,7 +23,7 @@ static int test_main (int argc, qse_char_t* argv[])
int qse_main (int argc, qse_achar_t* argv[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -28,7 +28,7 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -8,7 +8,7 @@
# include <windows.h> # include <windows.h>
#endif #endif
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
qse_nwad_t nwad; qse_nwad_t nwad;
qse_char_t buf[64]; qse_char_t buf[64];
@ -152,7 +152,7 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
return 0; return 0;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
@ -172,6 +172,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }

View File

@ -66,7 +66,7 @@ static int path_main (int argc, qse_char_t* argv[])
int qse_main (int argc, qse_achar_t* argv[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -71,7 +71,7 @@ static int rex_main (int argc, qse_char_t* argv[])
int qse_main (int argc, qse_achar_t* argv[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -93,7 +93,7 @@ static int test2 (void)
int main () int main ()
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -146,7 +146,7 @@ int main ()
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -134,7 +134,7 @@ static int test3 (void)
int main () int main ()
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -195,7 +195,7 @@ static int test3 (void)
int main () int main ()
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {

View File

@ -12,7 +12,7 @@
#endif #endif
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
qse_tre_t tre; qse_tre_t tre;
unsigned int nsubmat; unsigned int nsubmat;
@ -75,10 +75,10 @@ oops:
return -1; return -1;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {
@ -95,6 +95,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }

View File

@ -24,7 +24,7 @@ static void xxx (const qse_wchar_t* ptr, qse_size_t len)
} }
} }
static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[]) static int test_main (int argc, qse_char_t* argv[])
{ {
static const qse_wchar_t* wcs[] = static const qse_wchar_t* wcs[] =
{ {
@ -114,10 +114,10 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
return 0; return 0;
} }
int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[]) int qse_main (int argc, qse_achar_t* argv[])
{ {
#if defined(_WIN32) #if defined(_WIN32)
char locale[100]; char locale[100];
UINT codepage = GetConsoleOutputCP(); UINT codepage = GetConsoleOutputCP();
if (codepage == CP_UTF8) if (codepage == CP_UTF8)
{ {
@ -134,6 +134,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
qse_setdflcmgrbyid (QSE_CMGR_SLMB); qse_setdflcmgrbyid (QSE_CMGR_SLMB);
#endif #endif
return qse_runmainwithenv (argc, argv, envp, test_main); return qse_runmain (argc, argv, test_main);
} }