From 4e378306f429f7d5e125b91cecf54ef4fcf6b31b Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Mon, 14 Jul 2008 00:11:32 +0000 Subject: * generic/tclBasic.c.: NRE left too many calls to * generic/tclExecute.c: TclResetCancellation lying around: it * generic/tclProc.c: only needs to be called prior to any iPtr->numLevels++. Thanks mistachkin. --- ChangeLog | 6 +++++- generic/tclBasic.c | 5 +---- generic/tclExecute.c | 4 +--- generic/tclProc.c | 4 +--- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2bd7012..2d56cb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-07-14 Miguel Sofer + * generic/tclBasic.c.: NRE left too many calls to + * generic/tclExecute.c: TclResetCancellation lying around: it + * generic/tclProc.c: only needs to be called prior to any + iPtr->numLevels++. Thanks mistachkin. + * generic/tclBasic.c: TclResetCancellation() calls were misplaced (merge mishap); stray //. Thanks patthoyts. @@ -44,7 +49,6 @@ * unix/tclUnixTest.c: * win/tclWin32Dll.c: - 2008-07-08 Don Porter * generic/tclGet.c: Corrected out of date comments and removed diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 174a74f..07b3fb5 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -16,7 +16,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.307 2008/07/13 22:42:25 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.308 2008/07/14 00:11:32 msofer Exp $ */ #include "tclInt.h" @@ -5041,9 +5041,6 @@ TclEvalEx( eeFramePtr->line = lines; iPtr->cmdFramePtr = eeFramePtr; - - TclResetCancellation(interp, 0); - code = Tcl_EvalObjv(interp, objectsUsed, objv, TCL_EVAL_NOERR); iPtr->cmdFramePtr = iPtr->cmdFramePtr->nextPtr; diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 1299cce..0412034 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.377 2008/07/13 09:29:51 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.378 2008/07/14 00:11:33 msofer Exp $ */ #include "tclInt.h" @@ -1502,8 +1502,6 @@ TclCompileObj( * performance is noticeable. */ - TclResetCancellation(interp, 0); - if (TclInterpReady(interp) == TCL_ERROR) { return NULL; } diff --git a/generic/tclProc.c b/generic/tclProc.c index 90cac16..70f2921 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.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: tclProc.c,v 1.143 2008/07/13 09:03:35 msofer Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.144 2008/07/14 00:11:33 msofer Exp $ */ #include "tclInt.h" @@ -1811,8 +1811,6 @@ TclNRInterpProcCore( * Invoke the commands in the procedure's body. */ - TclResetCancellation(interp, 0); - procPtr->refCount++; codePtr = procPtr->bodyPtr->internalRep.otherValuePtr; if (TCL_DTRACE_PROC_ENTRY_ENABLED()) { -- cgit v0.12