summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-01-22 20:52:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-01-22 20:52:07 (GMT)
commitfcd8250c0cb0e5d3302d0e60110c7f18c070bcb2 (patch)
tree9525a8334d440d075dcd7955cc608aad725afee4 /generic
parente8f77ac4b256a035643be895f8a3f8efbeae4081 (diff)
downloadtcl-fcd8250c0cb0e5d3302d0e60110c7f18c070bcb2.zip
tcl-fcd8250c0cb0e5d3302d0e60110c7f18c070bcb2.tar.gz
tcl-fcd8250c0cb0e5d3302d0e60110c7f18c070bcb2.tar.bz2
* generic/tclTimer.c (AfterProc): Replace Tcl_EvalEx() with
Tcl_EvalObjEx() to evaluate [after] callbacks. Part of trend to favor compiled execution over direct evaluation.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclTimer.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c
index 711cb27..6df614e 100644
--- a/generic/tclTimer.c
+++ b/generic/tclTimer.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTimer.c,v 1.30 2007/12/13 15:23:20 dgp Exp $
+ * RCS: @(#) $Id: tclTimer.c,v 1.31 2008/01/22 20:52:10 dgp Exp $
*/
#include "tclInt.h"
@@ -1121,8 +1121,6 @@ AfterProc(
AfterInfo *prevPtr;
int result;
Tcl_Interp *interp;
- char *script;
- int numBytes;
/*
* First remove the callback from our list of callbacks; otherwise someone
@@ -1146,13 +1144,7 @@ AfterProc(
interp = assocPtr->interp;
Tcl_Preserve((ClientData) interp);
-#if 0
- /* DKF: Why not just do this? */
result = Tcl_EvalObjEx(interp, afterPtr->commandPtr, TCL_EVAL_GLOBAL);
-#else
- script = Tcl_GetStringFromObj(afterPtr->commandPtr, &numBytes);
- result = Tcl_EvalEx(interp, script, numBytes, TCL_EVAL_GLOBAL);
-#endif
if (result != TCL_OK) {
Tcl_AddErrorInfo(interp, "\n (\"after\" script)");
TclBackgroundException(interp, result);