[NetKVM] Untabify

This commit is contained in:
Dmitry Fleytman committed 2013-04-10 12:45:25 +03:00
1 parent 6a55900261
commit abf0a28bfd
71 files changed
+19031 -19031

No files matched your search

@@ -21,72 +21,72 @@ static FILE *f;
EXTERN_C void DoPrint(const char *format, ...)
{
va_list list;
va_start(list, format);
vprintf(format, list);
if (!f) f = fopen("test.log", "w+t");
if (f) vfprintf(f, format, list);
if (f) fflush(f);
va_list list;
va_start(list, format);
vprintf(format, list);
if (!f) f = fopen("test.log", "w+t");
if (f) vfprintf(f, format, list);
if (f) fflush(f);
}
void OnScriptEvent(PVOID ref, tScriptEvent evt, const char *format, ...)
{
switch(evt)
{
case escriptEvtPreprocessOK:
break;
case escriptEvtPreprocessFail:
break;
case escriptEvtPreprocessStep:
break;
case escriptEvtProcessStep:
break;
case escriptEvtProcessOK:
break;
case escriptEvtProcessFail:
break;
default:
break;
}
switch(evt)
{
case escriptEvtPreprocessOK:
break;
case escriptEvtPreprocessFail:
break;
case escriptEvtPreprocessStep:
break;
case escriptEvtProcessStep:
break;
case escriptEvtProcessOK:
break;
case escriptEvtProcessFail:
break;
default:
break;
}
}
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;
int nRetCode = 0;
HMODULE hModule = ::GetModuleHandle(NULL);
HMODULE hModule = ::GetModuleHandle(NULL);
if (hModule != NULL)
{
// initialize MFC and print and error on failure
if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
nRetCode = 1;
}
else
{
// TODO: code your application's behavior here.
if (argc > 1)
{
RunScript(argv[1], NULL, OnScriptEvent);
}
else
{
RunScript("test.txt", NULL, OnScriptEvent);
}
}
}
else
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: GetModuleHandle failed\n"));
nRetCode = 1;
}
if (hModule != NULL)
{
// initialize MFC and print and error on failure
if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
nRetCode = 1;
}
else
{
// TODO: code your application's behavior here.
if (argc > 1)
{
RunScript(argv[1], NULL, OnScriptEvent);
}
else
{
RunScript("test.txt", NULL, OnScriptEvent);
}
}
}
else
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: GetModuleHandle failed\n"));
nRetCode = 1;
}
return nRetCode;
return nRetCode;
}