diff options
| author | dgp@users.sourceforge.net <dgp> | 2004-09-22 03:19:50 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2004-09-22 03:19:50 (GMT) |
| commit | a642539140a89763818f27fa9c96ea00173388ba (patch) | |
| tree | a7d13aed7a794f8fa9e3fbae81799245576e3ac5 /generic/tclCompCmds.c | |
| parent | 1752675c2b0c49f56dba6b17fa6b756744b49b35 (diff) | |
| download | tcl-a642539140a89763818f27fa9c96ea00173388ba.zip tcl-a642539140a89763818f27fa9c96ea00173388ba.tar.gz tcl-a642539140a89763818f27fa9c96ea00173388ba.tar.bz2 | |
* generic/tclCompCmds.c: Tolerate [append] syntax errors
* tests/appendComp.test (8.1): at compile time, and allow runtime
to raise the error (or succeed if a redefined [append] allows).
Diffstat (limited to 'generic/tclCompCmds.c')
| -rw-r--r-- | generic/tclCompCmds.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index a368383..486beaa 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.56 2004/02/17 20:55:33 dkf Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.57 2004/09/22 03:19:52 dgp Exp $ */ #include "tclInt.h" @@ -80,11 +80,7 @@ TclCompileAppendCmd(interp, parsePtr, envPtr) numWords = parsePtr->numWords; if (numWords == 1) { - Tcl_ResetResult(interp); - Tcl_AppendToObj(Tcl_GetObjResult(interp), - "wrong # args: should be \"append varName ?value value ...?\"", - -1); - return TCL_ERROR; + return TCL_OUT_LINE_COMPILE; } else if (numWords == 2) { /* * append varName == set varName |
