summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2001-11-20 16:36:04 (GMT)
committermsofer <msofer@noemail.net>2001-11-20 16:36:04 (GMT)
commit594ddd6b4490fa88c70c33e1cf778a2d0d8a074c (patch)
tree93b0172a3be9ba5c965a233dbd7f2adbeb15c483 /generic/tclProc.c
parentf96da2d0de5f73cbc125621b79a8dab8953f543f (diff)
downloadtcl-594ddd6b4490fa88c70c33e1cf778a2d0d8a074c.zip
tcl-594ddd6b4490fa88c70c33e1cf778a2d0d8a074c.tar.gz
tcl-594ddd6b4490fa88c70c33e1cf778a2d0d8a074c.tar.bz2
restoring the computations of iPtr->numLevels to the original logic (previous to buggy modifs on 2001-11-16).
FossilOrigin-Name: 714cd03017ee34246fee41520f81405e92f98dfc
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 7d269a6..97e2512 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclProc.c,v 1.32 2001/11/16 20:01:04 msofer Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.33 2001/11/20 16:36:07 msofer Exp $
*/
#include "tclInt.h"
@@ -1069,18 +1069,9 @@ TclObjInterpProc(clientData, interp, objc, objv)
}
#endif /*TCL_COMPILE_DEBUG*/
- /*
- * Tcl_EvalObjEx will increase the level count again while evaluating
- * the body, resulting in a total level increase of 2; correct this
- * behaviour before evaling the body, restore afterwards.
- */
-
- iPtr->numLevels--;
-
iPtr->returnCode = TCL_OK;
procPtr->refCount++;
result = Tcl_EvalObjEx(interp, procPtr->bodyPtr, 0);
- iPtr->numLevels++;
procPtr->refCount--;
if (procPtr->refCount <= 0) {
TclProcCleanupProc(procPtr);