Commit 76a4bceb authored by Jan Möbius's avatar Jan Möbius

Cleanup indentations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9395 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 464c4cf6
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include <omp.h> #include <omp.h>
#endif #endif
// Includes for windows debugging console // Includes for windows debugging console
#ifdef WIN32 #ifdef WIN32
#ifndef NDEBUG #ifndef NDEBUG
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
#endif #endif
#endif #endif
// #ifndef WIN32 // #ifndef WIN32
// //
// #include <sys/resource.h> // #include <sys/resource.h>
...@@ -216,30 +218,30 @@ void segfaultHandling (int) { ...@@ -216,30 +218,30 @@ void segfaultHandling (int) {
} }
#ifdef WIN32 #ifdef WIN32
#ifndef NDEBUG #ifndef NDEBUG
void getConsole() { void getConsole() {
//Create a console for this application //Create a console for this application
AllocConsole(); AllocConsole();
//Redirect unbuffered STDOUT to the console //Redirect unbuffered STDOUT to the console
HANDLE ConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE); HANDLE ConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
int SystemOutput = _open_osfhandle(intptr_t(ConsoleOutput), _O_TEXT); int SystemOutput = _open_osfhandle(intptr_t(ConsoleOutput), _O_TEXT);
FILE *COutputHandle = _fdopen(SystemOutput, "w" ); FILE *COutputHandle = _fdopen(SystemOutput, "w" );
*stdout = *COutputHandle; *stdout = *COutputHandle;
setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0);
//Redirect unbuffered STDERR to the console //Redirect unbuffered STDERR to the console
HANDLE ConsoleError = GetStdHandle(STD_ERROR_HANDLE); HANDLE ConsoleError = GetStdHandle(STD_ERROR_HANDLE);
int SystemError = _open_osfhandle(intptr_t(ConsoleError), _O_TEXT); int SystemError = _open_osfhandle(intptr_t(ConsoleError), _O_TEXT);
FILE *CErrorHandle = _fdopen(SystemError, "w" ); FILE *CErrorHandle = _fdopen(SystemError, "w" );
*stderr = *CErrorHandle; *stderr = *CErrorHandle;
setvbuf(stderr, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0);
//Redirect unbuffered STDIN to the console //Redirect unbuffered STDIN to the console
HANDLE ConsoleInput = GetStdHandle(STD_INPUT_HANDLE); HANDLE ConsoleInput = GetStdHandle(STD_INPUT_HANDLE);
int SystemInput = _open_osfhandle(intptr_t(ConsoleInput), _O_TEXT); int SystemInput = _open_osfhandle(intptr_t(ConsoleInput), _O_TEXT);
FILE *CInputHandle = _fdopen(SystemInput, "r" ); FILE *CInputHandle = _fdopen(SystemInput, "r" );
*stdin = *CInputHandle; *stdin = *CInputHandle;
setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdin, NULL, _IONBF, 0);
} }
#endif #endif
#endif #endif
bool openPolyMeshes = false; bool openPolyMeshes = false;
...@@ -300,11 +302,11 @@ int main(int argc, char **argv) ...@@ -300,11 +302,11 @@ int main(int argc, char **argv)
{ {
#ifdef WIN32 #ifdef WIN32
#ifndef NDEBUG #ifndef NDEBUG
getConsole(); getConsole();
#endif
#endif
#endif #endif
// Remove -psn_0_xxxxx argument which is automatically // Remove -psn_0_xxxxx argument which is automatically
// attached by MacOSX // attached by MacOSX
for (int i = 0; i < argc; i++) { for (int i = 0; i < argc; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment