mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
04135b7ce4
If the last chunk of the string sent to StringOut isn't a whole line and forcePrint is set to false, send back what's left after processing. The caller is then responsible for prepending that string next time it calls StringOut. Should fix the rest of debug log corruptions. svn path=/trunk/; revision=55670
63 lines
1.6 KiB
C++
63 lines
1.6 KiB
C++
/* General includes */
|
|
#include <iostream>
|
|
#include <memory>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <iomanip>
|
|
|
|
using namespace std;
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <windows.h>
|
|
#include <ndk/rtlfuncs.h>
|
|
#include <reason.h>
|
|
#include <shlobj.h>
|
|
#include <wininet.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
|
#include <reactos/buildno.h>
|
|
|
|
/* Class includes */
|
|
#include "auto_array_ptr.h"
|
|
#include "CConfiguration.h"
|
|
#include "CFatalException.h"
|
|
#include "CInvalidParameterException.h"
|
|
#include "CProcess.h"
|
|
#include "CSimpleException.h"
|
|
#include "CTestInfo.h"
|
|
#include "CTest.h"
|
|
#include "CTestList.h"
|
|
#include "CJournaledTestList.h"
|
|
#include "CVirtualTestList.h"
|
|
#include "CWebService.h"
|
|
#include "CWineTest.h"
|
|
|
|
/* Useful macros */
|
|
#define EXCEPTION(Message) throw CSimpleException(Message)
|
|
#define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
|
|
#define SSEXCEPTION throw CSimpleException(ss.str().c_str())
|
|
|
|
/* main.c */
|
|
extern CConfiguration Configuration;
|
|
|
|
/* shutdown.c */
|
|
bool ShutdownSystem();
|
|
|
|
/* tools.c */
|
|
wstring AsciiToUnicode(const char* AsciiString);
|
|
wstring AsciiToUnicode(const string& AsciiString);
|
|
string EscapeString(const char* Input);
|
|
string EscapeString(const string& Input);
|
|
string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
|
|
bool IsNumber(const char* Input);
|
|
string StringOut(const string& String, const BOOL forcePrint);
|
|
string UnicodeToAscii(PCWSTR UnicodeString);
|
|
string UnicodeToAscii(const wstring& UnicodeString);
|
|
|
|
|
|
/* Lazy HACK to allow compiling/debugging with MSVC while we lack support
|
|
for linking against "debugsup_ntdll" in MSVC */
|
|
#ifdef _MSC_VER
|
|
#define DbgPrint
|
|
#endif
|