summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2001-08-14 13:45:57 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2001-08-14 13:45:57 (GMT)
commit19089b7d6c05029e3e1e61876a68d1ee9ffef370 (patch)
treebc7fa5567dde337b650571567edce36b9ddc79c5
parent79fd5a7f1c58e29491307c9623d4d414398accdf (diff)
downloadtcl-19089b7d6c05029e3e1e61876a68d1ee9ffef370.zip
tcl-19089b7d6c05029e3e1e61876a68d1ee9ffef370.tar.gz
tcl-19089b7d6c05029e3e1e61876a68d1ee9ffef370.tar.bz2
use MAX_NESTING_DEPTH as default nesting depth for interps [Bug: 232564]
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclBasic.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index eee47e4..2dcac45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-14 Miguel Sofer <msofer@users.sourceforge.net>
+
+ * generic/tclBasic.c: make the intial maxNestingDepth of an
+ interpreter be MAX_NESTING_DEPTH instead of a hardwired value
+ [Bug: 232564]
+
2001-08-13 Miguel Sofer <msofer@users.sourceforge.net>
* tests/trace.test: Corrected test numbers [Bug: 449794]
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index f27625a..3f3d099 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.33 2001/05/30 08:57:06 dkf Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.34 2001/08/14 13:45:57 msofer Exp $
*/
#include "tclInt.h"
@@ -314,7 +314,7 @@ Tcl_CreateInterp()
Tcl_InitHashTable(&iPtr->mathFuncTable, TCL_STRING_KEYS);
iPtr->numLevels = 0;
- iPtr->maxNestingDepth = 1000;
+ iPtr->maxNestingDepth = MAX_NESTING_DEPTH;
iPtr->framePtr = NULL;
iPtr->varFramePtr = NULL;
iPtr->activeTracePtr = NULL;