summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2008-06-13 05:45:01 (GMT)
committermistachkin <mistachkin@noemail.net>2008-06-13 05:45:01 (GMT)
commitee337e6d610110e3036beeb2537d68ca99335790 (patch)
tree32ea63055bc449e3ffe1e3b813bb8c48326ac84c /generic/tclParse.c
parent346591d96d2b43f00bf343052aba1a09e67a0468 (diff)
downloadtcl-ee337e6d610110e3036beeb2537d68ca99335790.zip
tcl-ee337e6d610110e3036beeb2537d68ca99335790.tar.gz
tcl-ee337e6d610110e3036beeb2537d68ca99335790.tar.bz2
TIP 285 Implementation
FossilOrigin-Name: 505c316922f01840b9fed6a409f5ca5786f5ad7d
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index 620f54e..126ea4f 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.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: tclParse.c,v 1.64 2008/05/21 20:28:14 dgp Exp $
+ * RCS: @(#) $Id: tclParse.c,v 1.65 2008/06/13 05:45:14 mistachkin Exp $
*/
#include "tclInt.h"
@@ -2167,9 +2167,14 @@ TclSubstTokens(
case TCL_TOKEN_COMMAND: {
Interp *iPtr = (Interp *) interp;
+ TclResetCancellation(interp, 0);
+
iPtr->numLevels++;
code = TclInterpReady(interp);
if (code == TCL_OK) {
+ code = Tcl_Canceled(interp, TCL_LEAVE_ERR_MSG);
+ }
+ if (code == TCL_OK) {
/* TIP #280: Transfer line information to nested command */
code = TclEvalEx(interp, tokenPtr->start+1, tokenPtr->size-2,
0, line);