From 2c7191c9a51dde1c2cd6c52ad41426d4e60377f8 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Thu, 23 Oct 2008 03:28:09 +0000 Subject: * generic/tclCmdAH.c (ForNextCallback): handle TCL_CONTINUE in the for body [Bug 2186888]. --- ChangeLog | 5 +++++ generic/tclCmdAH.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b89232..16d31b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-23 Miguel Sofer + + * generic/tclCmdAH.c (ForNextCallback): handle TCL_CONTINUE in + the for body [Bug 2186888]. + 2008-10-22 Jan Nijtmans * generic/tcl.h: CONST -> const and white-spacing diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 2e9b5b9..724e80b 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.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: tclCmdAH.c,v 1.107 2008/10/17 16:32:58 dgp Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.108 2008/10/23 03:28:09 msofer Exp $ */ #include "tclInt.h" @@ -1763,7 +1763,7 @@ ForNextCallback( char *msg = data[3]; - if (result == TCL_OK) { + if ((result == TCL_OK) || (result == TCL_CONTINUE)) { /* * TIP #280. Make invoking context available to next script. * -- cgit v0.12