Use a common helper macro to declare some UI output related variables

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6800 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-11-22 23:11:33 +00:00
parent ca0c51491b
commit d698d166d5
6 changed files with 18 additions and 15 deletions

View file

@ -6,14 +6,14 @@
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include "../util.h" // HACKHACK: for NSISRT_DEFINEGLOBALS
using namespace std; // for std::min
int g_display_errors = 1;
FILE *g_output = stderr;
NSISRT_DEFINEGLOBALS(); // HACKHACK: This really belongs in textrunner.cpp?
void quit() {
_ftprintf(g_output, _T("MMap quit\n"));
_ftprintf(g_errout, _T("MMap quit\n"));
}
class MMapTest : public CppUnit::TestFixture {

View file

@ -28,7 +28,7 @@ class WinCharTest : public CppUnit::TestFixture {
public:
void setUp() {
NSISRT_Initialize();
NSISRT_Initialize(); // HACKHACK: This really belongs in textrunner.cpp?
}
void testFromTchar() {