diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2016-01-23 20:28:19 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2016-01-23 20:28:19 (GMT) |
commit | 1acb0742e2003b2986c75a8f0967b7a7fdd5d661 (patch) | |
tree | 17e6862de7202f1e8aa203b4d9ce71e48c3abd01 /generic/tclThreadTest.c | |
parent | d8bdd23bc64b9a515924bf2f8c38345a1ee46c0a (diff) | |
parent | 095b587df14e39ec71e1f4a638516f371c8ce861 (diff) | |
download | tcl-1acb0742e2003b2986c75a8f0967b7a7fdd5d661.zip tcl-1acb0742e2003b2986c75a8f0967b7a7fdd5d661.tar.gz tcl-1acb0742e2003b2986c75a8f0967b7a7fdd5d661.tar.bz2 |
merge
Diffstat (limited to 'generic/tclThreadTest.c')
-rw-r--r-- | generic/tclThreadTest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c index 02ee038..75f8a15 100644 --- a/generic/tclThreadTest.c +++ b/generic/tclThreadTest.c @@ -613,7 +613,7 @@ NewTestThread( */ Tcl_Preserve(tsdPtr->interp); - result = Tcl_Eval(tsdPtr->interp, threadEvalScript); + result = Tcl_EvalEx(tsdPtr->interp, threadEvalScript, -1, 0); if (result != TCL_OK) { ThreadErrorProc(tsdPtr->interp); } @@ -834,7 +834,7 @@ ThreadSend( if (threadId == Tcl_GetCurrentThread()) { Tcl_MutexUnlock(&threadMutex); - return Tcl_GlobalEval(interp, script); + return Tcl_EvalEx(interp, script,-1,TCL_EVAL_GLOBAL); } /* @@ -1029,7 +1029,7 @@ ThreadEventProc( Tcl_Preserve(interp); Tcl_ResetResult(interp); Tcl_CreateThreadExitHandler(ThreadFreeProc, threadEventPtr->script); - code = Tcl_GlobalEval(interp, threadEventPtr->script); + code = Tcl_EvalEx(interp, threadEventPtr->script,-1,TCL_EVAL_GLOBAL); Tcl_DeleteThreadExitHandler(ThreadFreeProc, threadEventPtr->script); if (code != TCL_OK) { errorCode = Tcl_GetVar(interp, "errorCode", TCL_GLOBAL_ONLY); |