summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixSend.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-03-22 15:11:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-03-22 15:11:22 (GMT)
commit799b9f787adc4145bcf9d3834de9656e0b93f04c (patch)
tree398503485909642466d8b09fb3aca93606f46b57 /unix/tkUnixSend.c
parentc8f45542bbffa9d476314be5fdafc6dc87216641 (diff)
parent1e43f52d3f5a853bf95be27798ace31ea8ee2884 (diff)
downloadtk-799b9f787adc4145bcf9d3834de9656e0b93f04c.zip
tk-799b9f787adc4145bcf9d3834de9656e0b93f04c.tar.gz
tk-799b9f787adc4145bcf9d3834de9656e0b93f04c.tar.bz2
merge trunk
Diffstat (limited to 'unix/tkUnixSend.c')
-rw-r--r--unix/tkUnixSend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c
index fb4cdd4..3fb745e 100644
--- a/unix/tkUnixSend.c
+++ b/unix/tkUnixSend.c
@@ -1022,7 +1022,7 @@ Tk_SendCmd(
localInterp = riPtr->interp;
Tcl_Preserve((ClientData) localInterp);
if (firstArg == (argc-1)) {
- result = Tcl_GlobalEval(localInterp, argv[firstArg]);
+ result = Tcl_EvalEx(localInterp, argv[firstArg], -1, TCL_EVAL_GLOBAL);
} else {
Tcl_DStringInit(&request);
Tcl_DStringAppend(&request, argv[firstArg], -1);
@@ -1030,7 +1030,7 @@ Tk_SendCmd(
Tcl_DStringAppend(&request, " ", 1);
Tcl_DStringAppend(&request, argv[i], -1);
}
- result = Tcl_GlobalEval(localInterp, Tcl_DStringValue(&request));
+ result = Tcl_EvalEx(localInterp, Tcl_DStringValue(&request), -1, TCL_EVAL_GLOBAL);
Tcl_DStringFree(&request);
}
if (interp != localInterp) {
@@ -1556,7 +1556,7 @@ SendEventProc(
remoteInterp = riPtr->interp;
Tcl_Preserve((ClientData) remoteInterp);
- result = Tcl_GlobalEval(remoteInterp, script);
+ result = Tcl_EvalEx(remoteInterp, script, -1, TCL_EVAL_GLOBAL);
/*
* The call to Tcl_Release may have released the interpreter which