diff options
author | dgp <dgp@users.sourceforge.net> | 2008-09-29 15:38:30 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-09-29 15:38:30 (GMT) |
commit | f47fa38944c02518936f12a7bf883cb48b7feca8 (patch) | |
tree | 62808331cf01b5b0f66996784fd4d1e96e83d9e8 /generic | |
parent | 7e9fde3466a3436d634d966a64f73d900e274d88 (diff) | |
download | tcl-f47fa38944c02518936f12a7bf883cb48b7feca8.zip tcl-f47fa38944c02518936f12a7bf883cb48b7feca8.tar.gz tcl-f47fa38944c02518936f12a7bf883cb48b7feca8.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/linsert.n: Revise [linsert] to accept zero elements.
* generic/tclCmdIL.c:
* tests/linsert.test:
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdIL.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index 4041512..d479f81 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -16,7 +16,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdIL.c,v 1.157 2008/09/29 13:33:16 dkf Exp $ + * RCS: @(#) $Id: tclCmdIL.c,v 1.158 2008/09/29 15:38:32 dgp Exp $ */ #include "tclInt.h" @@ -2189,8 +2189,8 @@ Tcl_LinsertObjCmd( Tcl_Obj *listPtr; int index, len, result; - if (objc < 4) { - Tcl_WrongNumArgs(interp, 1, objv, "list index element ?element ...?"); + if (objc < 3) { + Tcl_WrongNumArgs(interp, 1, objv, "list index ?element ...?"); return TCL_ERROR; } |