fixed wrong indentation
This commit is contained in:
parent
b907296f4a
commit
d9b42ca785
@ -17,7 +17,6 @@
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#if 0
|
||||
|
||||
#include <qse/sed/std.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);
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "../../samples/cmn/task01.c"
|
||||
|
@ -29,7 +29,7 @@ static int test1 (void)
|
||||
int main ()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
# include <windows.h>
|
||||
#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];
|
||||
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;
|
||||
}
|
||||
|
||||
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)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
@ -74,6 +74,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#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];
|
||||
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;
|
||||
}
|
||||
|
||||
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)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
@ -94,6 +94,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ int fs_main (int argc, qse_char_t* argv[])
|
||||
int qse_main (int argc, qse_achar_t* argv[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ static int glob_main (int argc, qse_char_t* argv[])
|
||||
int qse_main (int argc, qse_achar_t* argv[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -178,7 +178,7 @@ static int test_ipad6 (void)
|
||||
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 ();
|
||||
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;
|
||||
}
|
||||
|
||||
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)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
@ -206,6 +206,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ static int test_main (int argc, qse_char_t* argv[])
|
||||
int qse_main (int argc, qse_achar_t* argv[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -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[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
# include <windows.h>
|
||||
#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_char_t buf[64];
|
||||
@ -152,7 +152,7 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
|
||||
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)
|
||||
char locale[100];
|
||||
@ -172,6 +172,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ static int path_main (int argc, qse_char_t* argv[])
|
||||
int qse_main (int argc, qse_achar_t* argv[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ static int rex_main (int argc, qse_char_t* argv[])
|
||||
int qse_main (int argc, qse_achar_t* argv[])
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ static int test2 (void)
|
||||
int main ()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ int main ()
|
||||
{
|
||||
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -134,7 +134,7 @@ static int test3 (void)
|
||||
int main ()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -195,7 +195,7 @@ static int test3 (void)
|
||||
int main ()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
|
@ -12,7 +12,7 @@
|
||||
#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;
|
||||
unsigned int nsubmat;
|
||||
@ -75,10 +75,10 @@ oops:
|
||||
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)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
@ -95,6 +95,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
@ -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[] =
|
||||
{
|
||||
@ -114,10 +114,10 @@ static int test_main (int argc, qse_char_t* argv[], qse_char_t* envp[])
|
||||
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)
|
||||
char locale[100];
|
||||
char locale[100];
|
||||
UINT codepage = GetConsoleOutputCP();
|
||||
if (codepage == CP_UTF8)
|
||||
{
|
||||
@ -134,6 +134,6 @@ int qse_main (int argc, qse_achar_t* argv[], qse_achar_t* envp[])
|
||||
setlocale (LC_ALL, "");
|
||||
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
|
||||
#endif
|
||||
return qse_runmainwithenv (argc, argv, envp, test_main);
|
||||
return qse_runmain (argc, argv, test_main);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user