summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmds.c
diff options
context:
space:
mode:
authormdejong <mdejong@noemail.net>2003-02-07 01:07:03 (GMT)
committermdejong <mdejong@noemail.net>2003-02-07 01:07:03 (GMT)
commite7bee902c38b385cc8ac746e1515e670b07d76c6 (patch)
treea295942df4133d8cf37c67326647dcf49538bc1d /generic/tclCompCmds.c
parentdcf2a33bf8f5612d2e19a568040fb513e2a70b33 (diff)
downloadtcl-e7bee902c38b385cc8ac746e1515e670b07d76c6.zip
tcl-e7bee902c38b385cc8ac746e1515e670b07d76c6.tar.gz
tcl-e7bee902c38b385cc8ac746e1515e670b07d76c6.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. FossilOrigin-Name: 8d271ffd1363aa9a33e1d4067d4a94e779eb3eba
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;
}
}