summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmds.c
diff options
context:
space:
mode:
authormdejong <mdejong>2003-02-07 01:07:04 (GMT)
committermdejong <mdejong>2003-02-07 01:07:04 (GMT)
commitd9f3f73415bb466f9342a2788320781f87952a33 (patch)
treea295942df4133d8cf37c67326647dcf49538bc1d /generic/tclCompCmds.c
parent7db3c4572f4e0b4a36e286392857d239b21ef481 (diff)
downloadtcl-d9f3f73415bb466f9342a2788320781f87952a33.zip
tcl-d9f3f73415bb466f9342a2788320781f87952a33.tar.gz
tcl-d9f3f73415bb466f9342a2788320781f87952a33.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/tclCompCmds.c')
-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;
}
}