From 19089b7d6c05029e3e1e61876a68d1ee9ffef370 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Tue, 14 Aug 2001 13:45:57 +0000 Subject: use MAX_NESTING_DEPTH as default nesting depth for interps [Bug: 232564] --- ChangeLog | 6 ++++++ generic/tclBasic.c | 4 ++-- 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 + + * 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 * 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; -- cgit v0.12