summaryrefslogtreecommitdiffstats
path: root/generic/tclPipe.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-08-03 10:56:28 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-08-03 10:56:28 (GMT)
commitc525f5049c4f7698eff261177a56da0fea9620c6 (patch)
tree75be1366adc438a7d2ef0f75fc7c2ffe414d7872 /generic/tclPipe.c
parentbc7cee752da36301f1478e54749f8e6b4a8d8b3e (diff)
downloadtcl-c525f5049c4f7698eff261177a56da0fea9620c6.zip
tcl-c525f5049c4f7698eff261177a56da0fea9620c6.tar.gz
tcl-c525f5049c4f7698eff261177a56da0fea9620c6.tar.bz2
converting to using Tcl_Obj API for error message generation; part done
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r--generic/tclPipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c
index d0b136d..56a1846 100644
--- a/generic/tclPipe.c
+++ b/generic/tclPipe.c
@@ -542,8 +542,8 @@ TclCreatePipeline(
}
if (*p == '\0') {
if ((i == (lastBar + 1)) || (i == (argc - 1))) {
- Tcl_SetResult(interp, "illegal use of | or |& in command",
- TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "illegal use of | or |& in command", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC",
"PIPESYNTAX", NULL);
goto error;
@@ -722,8 +722,8 @@ TclCreatePipeline(
* We had a bar followed only by redirections.
*/
- Tcl_SetResult(interp, "illegal use of | or |& in command",
- TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "illegal use of | or |& in command", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC", "PIPESYNTAX",
NULL);
goto error;