summaryrefslogtreecommitdiffstats
path: root/generic/tclPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-05 19:57:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-05 19:57:48 (GMT)
commite4e106233842d77095bf459f14bb82e953bc8c6f (patch)
treef51bc271d7aea5c9938d3d00a661ab7ac3307c07 /generic/tclPipe.c
parent0968aa6de7b67ed474049bb1f53a03b192f9c07c (diff)
downloadtcl-e4e106233842d77095bf459f14bb82e953bc8c6f.zip
tcl-e4e106233842d77095bf459f14bb82e953bc8c6f.tar.gz
tcl-e4e106233842d77095bf459f14bb82e953bc8c6f.tar.bz2
Another round of -1 -> TCL_INDEX_NONE
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r--generic/tclPipe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c
index 137b415..b18b789 100644
--- a/generic/tclPipe.c
+++ b/generic/tclPipe.c
@@ -335,7 +335,7 @@ TclCleanupChildren(
Tcl_Seek(errorChan, 0, SEEK_SET);
TclNewObj(objPtr);
- count = Tcl_ReadChars(errorChan, objPtr, -1, 0);
+ count = Tcl_ReadChars(errorChan, objPtr, TCL_INDEX_NONE, 0);
if (count == -1) {
result = TCL_ERROR;
Tcl_DecrRefCount(objPtr);
@@ -361,7 +361,7 @@ TclCleanupChildren(
if ((abnormalExit != 0) && (anyErrorInfo == 0) && (interp != NULL)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "child process exited abnormally", -1));
+ "child process exited abnormally", TCL_INDEX_NONE));
}
return result;
}
@@ -512,7 +512,7 @@ TclCreatePipeline(
if (*p == '\0') {
if ((i == (lastBar + 1)) || (i == (argc - 1))) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "illegal use of | or |& in command", -1));
+ "illegal use of | or |& in command", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC",
"PIPESYNTAX", NULL);
goto error;
@@ -700,7 +700,7 @@ TclCreatePipeline(
*/
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "illegal use of | or |& in command", -1));
+ "illegal use of | or |& in command", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC", "PIPESYNTAX",
NULL);
goto error;
@@ -1054,7 +1054,7 @@ Tcl_OpenCommandChannel(
if ((flags & TCL_STDOUT) && (outPipe == NULL)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"can't read output from command:"
- " standard output was redirected", -1));
+ " standard output was redirected", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC",
"BADREDIRECT", NULL);
goto error;
@@ -1062,7 +1062,7 @@ Tcl_OpenCommandChannel(
if ((flags & TCL_STDIN) && (inPipe == NULL)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"can't write input to command:"
- " standard input was redirected", -1));
+ " standard input was redirected", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC",
"BADREDIRECT", NULL);
goto error;
@@ -1074,7 +1074,7 @@ Tcl_OpenCommandChannel(
if (channel == NULL) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "pipe for command could not be created", -1));
+ "pipe for command could not be created", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC", "NOPIPE", NULL);
goto error;
}