summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-08-17 17:43:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-08-17 17:43:38 (GMT)
commit13abf0c4f482ad0481bb1945ff6451452535f47a (patch)
treecc8f0d7887f69a4f0cf10b3ccf792b6111f07616 /generic/tclCompile.c
parentc441dca49ce8195d79b0d6abf058ca5a75015ee6 (diff)
downloadtcl-13abf0c4f482ad0481bb1945ff6451452535f47a.zip
tcl-13abf0c4f482ad0481bb1945ff6451452535f47a.tar.gz
tcl-13abf0c4f482ad0481bb1945ff6451452535f47a.tar.bz2
* generic/tclCompile.c: Revised the new set of expression
* generic/tclParseExpr.c: parse error messages.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index a24571b..56aa708 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.94 2006/08/10 12:15:31 dkf Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.95 2006/08/17 17:43:38 dgp Exp $
*/
#include "tclInt.h"
@@ -1604,6 +1604,7 @@ TclCompileExprWords(
if (TclCompileExpr(interp, script, numBytes, envPtr) == TCL_OK) {
return;
}
+ Tcl_ResetResult(interp);
envPtr->numCommands = savedNumCmds;
envPtr->codeNext = envPtr->codeStart + savedCodeNext;
}