ide: Fixed bad usage of PipeOpenMode causing showWindow to be set
authorJerome St-Louis <jerome@ecere.com>
Thu, 29 Aug 2013 21:18:04 +0000 (17:18 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 29 Aug 2013 21:51:06 +0000 (17:51 -0400)
- Filed #994

ide/src/debugger/Debugger.ec
ide/src/project/Project.ec
ide/src/project/ProjectNode.ec

index 4784107..369d77d 100644 (file)
@@ -2224,7 +2224,7 @@ class Debugger
                   valgrindCommand, vgLogPath, (char*)vgLeakCheck, vgRedzoneSizeFlag, vgTrackOrigins ? "yes" : "no", targetFile, clArgs ? " " : "", clArgs ? clArgs : "");
             if(vgRedzoneSize != -1)
                delete vgRedzoneSizeFlag;
-            vgTargetHandle = DualPipeOpen(PipeOpenMode { output = 1, error = 2, input = 1 }, command);
+            vgTargetHandle = DualPipeOpen(PipeOpenMode { output = true, /*error = true, */input = true }, command);
             if(!vgTargetHandle)
             {
                ide.outputView.debugBox.Logf($"Debugger Fatal Error: Couldn't start Valgrind\n");
@@ -2267,7 +2267,7 @@ class Debugger
          {
             strcat(command, " -n -silent --interpreter=mi2"); //-async //\"%s\"
             gdbTimer.Start();
-            gdbHandle = DualPipeOpen(PipeOpenMode { output = 1, error = 2, input = 1 }, command);
+            gdbHandle = DualPipeOpen(PipeOpenMode { output = true, /*error = true, */input = true }, command);
             if(!gdbHandle)
             {
                ide.outputView.debugBox.Logf($"Debugger Fatal Error: Couldn't start GDB\n");
index 9524d78..57fb4d7 100644 (file)
@@ -2131,7 +2131,7 @@ private:
          sprintf(command, "%s /useenv /nologo /logcommands %s.sln %s|Win32", compiler.makeCommand, name, config.name);
          if(justPrint)
             ide.outputView.buildBox.Logf("%s\n", command);
-         if((f = DualPipeOpen(PipeOpenMode { output = true, error = true, input = true }, command)))
+         if((f = DualPipeOpen(PipeOpenMode { output = true, error = true/*, input = true*/ }, command)))
          {
             ProcessPipeOutputRaw(f);
             delete f;
@@ -2278,7 +2278,7 @@ private:
                topNode.path, justPrint ? " -n": "", makeFilePath);
          if(justPrint)
             ide.outputView.buildBox.Logf("%s\n", command);
-         if((f = DualPipeOpen(PipeOpenMode { output = 1, error = 1, input = 2 }, command)))
+         if((f = DualPipeOpen(PipeOpenMode { output = true, error = true, input = true }, command)))
          {
             ide.outputView.buildBox.Tellf($"Deleting %s%s...",
                   cleanType == realClean ? $"intermediate objects directory" : $"target",
@@ -3567,7 +3567,7 @@ private:
       }
 
       // Execute it
-      if((dep = DualPipeOpen(PipeOpenMode { output = 1, error = 1, input = 2 }, command)))
+      if((dep = DualPipeOpen(PipeOpenMode { output = true, error = true/*, input = true*/ }, command)))
       {
          char line[1024];
          bool result = true;
index ffc3606..77af10e 100644 (file)
@@ -1593,7 +1593,7 @@ private:
             }
 
             // Execute it
-            if((dep = DualPipeOpen(PipeOpenMode { output = 1, error = 1, input = 2 }, command)))
+            if((dep = DualPipeOpen(PipeOpenMode { output = true, error = true/*, input = true*/ }, command)))
             {
                char line[1024];
                bool firstLine = true;
@@ -1817,7 +1817,7 @@ private:
             }
 
             // Execute it
-            if((dep = DualPipeOpen(PipeOpenMode { output = 1, error = 1, input = 2 }, command)))
+            if((dep = DualPipeOpen(PipeOpenMode { output = true, error = true/*, input = true*/ }, command)))
             {
                char line[1024];
                bool result = true;
@@ -1991,7 +1991,7 @@ private:
                }
 
                // Execute it
-               if((dep = DualPipeOpen(PipeOpenMode { output = 1, error = 1, input = 2 }, command)))
+               if((dep = DualPipeOpen(PipeOpenMode { output = true, error = true, input = false }, command)))
                {
                   char line[1024];
                   bool firstLine = true;