summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Process.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-07 19:09:58 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-07 19:09:58 (GMT)
commitb777b8656e2ea28a165c22a3c1f7a1a1dd1b11a7 (patch)
tree110e32b1ff34d4ef72c411e68c403bb1a77973b9 /Source/kwsys/Process.h.in
parent21c5c6c81d753ddc50e1bb1236a08ff014ffba69 (diff)
downloadCMake-b777b8656e2ea28a165c22a3c1f7a1a1dd1b11a7.zip
CMake-b777b8656e2ea28a165c22a3c1f7a1a1dd1b11a7.tar.gz
CMake-b777b8656e2ea28a165c22a3c1f7a1a1dd1b11a7.tar.bz2
ENH: Cleaned up pipe numbering.
Diffstat (limited to 'Source/kwsys/Process.h.in')
-rw-r--r--Source/kwsys/Process.h.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/kwsys/Process.h.in b/Source/kwsys/Process.h.in
index 0583c0c..adca44b 100644
--- a/Source/kwsys/Process.h.in
+++ b/Source/kwsys/Process.h.in
@@ -60,6 +60,7 @@
#define kwsysProcess_Execute kwsys(Process_Execute)
#define kwsysProcess_WaitForData kwsys(Process_WaitForData)
#define kwsysProcess_Pipes_e kwsys(Process_Pipes_e)
+#define kwsysProcess_Pipe_None kwsys(Process_Pipe_None)
#define kwsysProcess_Pipe_STDOUT kwsys(Process_Pipe_STDOUT)
#define kwsysProcess_Pipe_STDERR kwsys(Process_Pipe_STDERR)
#define kwsysProcess_Pipe_Timeout kwsys(Process_Pipe_Timeout)
@@ -228,8 +229,8 @@ kwsysEXPORT void kwsysProcess_Execute(kwsysProcess* cp);
*
* Return value will be one of:
*
- * 0 = No more data will be available from the child process,
- * or no process has been executed. WaitForExit should
+ * Pipe_None = No more data will be available from the child process,
+ * ( == 0) or no process has been executed. WaitForExit should
* be called to wait for the process to terminate.
* Pipe_STDOUT = Data have been read from the child's stdout pipe.
* Pipe_STDERR = Data have been read from the child's stderr pipe.
@@ -241,8 +242,9 @@ kwsysEXPORT int kwsysProcess_WaitForData(kwsysProcess* cp, char** data,
int* length, double* timeout);
enum kwsysProcess_Pipes_e
{
- kwsysProcess_Pipe_STDOUT=1,
- kwsysProcess_Pipe_STDERR=2,
+ kwsysProcess_Pipe_None,
+ kwsysProcess_Pipe_STDOUT,
+ kwsysProcess_Pipe_STDERR,
kwsysProcess_Pipe_Timeout=255
};
@@ -317,6 +319,7 @@ kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp);
# undef kwsysProcess_Execute
# undef kwsysProcess_WaitForData
# undef kwsysProcess_Pipes_e
+# undef kwsysProcess_Pipe_None
# undef kwsysProcess_Pipe_STDOUT
# undef kwsysProcess_Pipe_STDERR
# undef kwsysProcess_Pipe_Timeout