diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-11 11:48:38 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-11 11:48:38 (GMT) |
commit | 7e9cd69cb54782aca78dd08297b6e64125d97de1 (patch) | |
tree | c9a801ef36f2cf95b58dcb55dd72e10ecfe02f67 /unix/tkUnixSend.c | |
parent | 681611312cc92c4d6df78965eb26afdaca1ff53b (diff) | |
parent | a7cf312d4213e088b62257e93b3038e53f3fc31b (diff) | |
download | tk-7e9cd69cb54782aca78dd08297b6e64125d97de1.zip tk-7e9cd69cb54782aca78dd08297b6e64125d97de1.tar.gz tk-7e9cd69cb54782aca78dd08297b6e64125d97de1.tar.bz2 |
Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and Tcl_GlobalEvalObj functions.
Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths.
Diffstat (limited to 'unix/tkUnixSend.c')
-rw-r--r-- | unix/tkUnixSend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c index e3a810d..15817eb 100644 --- a/unix/tkUnixSend.c +++ b/unix/tkUnixSend.c @@ -1024,7 +1024,7 @@ Tk_SendCmd( localInterp = riPtr->interp; Tcl_Preserve(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); @@ -1032,7 +1032,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) { @@ -1565,7 +1565,7 @@ SendEventProc( remoteInterp = riPtr->interp; Tcl_Preserve(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 |