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

@ -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,7 +54,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];
@ -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,7 +74,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];
@ -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

@ -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,7 +186,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];
@ -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

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

@ -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,7 +75,7 @@ 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];
@ -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,7 +114,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];
@ -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);
} }