MakeNSIS console warn/err colors on Win32
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6167 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ee59b7f723
commit
e918dd8a27
10 changed files with 112 additions and 46 deletions
|
@ -17,7 +17,7 @@
|
|||
#include "mmap.h"
|
||||
#include <cstdio> // for f*
|
||||
#include <cassert> // for assert
|
||||
#include "tchar.h"
|
||||
#include "tchar.h"
|
||||
#include <limits.h>
|
||||
#ifndef _WIN32
|
||||
# include <sys/types.h> // for freebsd
|
||||
|
@ -26,6 +26,7 @@
|
|||
# include <fcntl.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include "util.h"
|
||||
|
||||
// ========
|
||||
// MMapFile
|
||||
|
@ -220,8 +221,7 @@ void MMapFile::resize(int newsize)
|
|||
extern void quit(); extern int g_display_errors;
|
||||
if (g_display_errors)
|
||||
{
|
||||
_ftprintf(g_output,_T("\nInternal compiler error #12345: error creating mmap the size of %d.\n"), m_iSize);
|
||||
fflush(g_output);
|
||||
PrintColorFmtMsg_ERR(_T("\nInternal compiler error #12345: error creating mmap the size of %d.\n"), m_iSize);
|
||||
}
|
||||
quit();
|
||||
}
|
||||
|
@ -253,8 +253,7 @@ void *MMapFile::get(int offset, int *sizep) const
|
|||
extern void quit(); extern int g_display_errors;
|
||||
if (g_display_errors)
|
||||
{
|
||||
_ftprintf(g_output,_T("\nInternal compiler error #12345: error mmapping file (%d, %d) is out of range.\n"), offset, size);
|
||||
fflush(g_output);
|
||||
PrintColorFmtMsg_ERR(_T("\nInternal compiler error #12345: error mmapping file (%d, %d) is out of range.\n"), offset, size);
|
||||
}
|
||||
quit();
|
||||
}
|
||||
|
@ -280,8 +279,7 @@ void *MMapFile::get(int offset, int *sizep) const
|
|||
extern void quit(); extern int g_display_errors;
|
||||
if (g_display_errors)
|
||||
{
|
||||
_ftprintf(g_output,_T("\nInternal compiler error #12345: error mmapping datablock to %d.\n"), size);
|
||||
fflush(g_output);
|
||||
PrintColorFmtMsg_ERR(_T("\nInternal compiler error #12345: error mmapping datablock to %d.\n"), size);
|
||||
}
|
||||
quit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue