summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormdejong <mdejong>2003-02-07 01:07:04 (GMT)
committermdejong <mdejong>2003-02-07 01:07:04 (GMT)
commit17cd8602bc9bd0401d641d50893a409bc660c181 (patch)
treea295942df4133d8cf37c67326647dcf49538bc1d /generic
parent8a99de882edc8565ff543a67a58e02f5f517ba7c (diff)
downloadtcl-17cd8602bc9bd0401d641d50893a409bc660c181.zip
tcl-17cd8602bc9bd0401d641d50893a409bc660c181.tar.gz
tcl-17cd8602bc9bd0401d641d50893a409bc660c181.tar.bz2
* generic/tclCompCmds.c (TclCompileIncrCmd):
* tests/incr.test: Don't include the text "(increment expression)" in the errorInfo generated by the compiled version of the incr command since it does not match the message generated by the non-compiled version of incr. It is also not possible to match this error output under Jacl, which does not support a compiler.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompCmds.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index f2df134..ae3bb31 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.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: tclCompCmds.c,v 1.38 2003/02/01 23:49:20 kennykb Exp $
+ * RCS: @(#) $Id: tclCompCmds.c,v 1.39 2003/02/07 01:07:05 mdejong Exp $
*/
#include "tclInt.h"
@@ -1558,10 +1558,6 @@ TclCompileIncrCmd(interp, parsePtr, envPtr)
code = TclCompileTokens(interp, incrTokenPtr+1,
incrTokenPtr->numComponents, envPtr);
if (code != TCL_OK) {
- if (code == TCL_ERROR) {
- Tcl_AddObjErrorInfo(interp,
- "\n (increment expression)", -1);
- }
goto done;
}
}