diff options
author | dgp <dgp@users.sourceforge.net> | 2008-09-26 19:36:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-09-26 19:36:47 (GMT) |
commit | ed14e02fc83fc5a7dab826db93ce7e2d4e276a96 (patch) | |
tree | 3de038aa9224dde36f236ff723ee9f565ca49c9a /generic/tclNamesp.c | |
parent | 7a8e8db83501823dbe441944d6107f249accb2e8 (diff) | |
download | tcl-ed14e02fc83fc5a7dab826db93ce7e2d4e276a96.zip tcl-ed14e02fc83fc5a7dab826db93ce7e2d4e276a96.tar.gz tcl-ed14e02fc83fc5a7dab826db93ce7e2d4e276a96.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/namespace.n: Revise [namespace upvar] to accept zero
* generic/tclNamesp.c: variable names.
* tests/upvar.test:
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 55f9200..e08ab4e 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -23,7 +23,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.176 2008/08/23 11:35:54 dkf Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.177 2008/09/26 19:36:50 dgp Exp $ */ #include "tclInt.h" @@ -4495,9 +4495,9 @@ NamespaceUpvarCmd( Var *otherPtr, *arrayPtr; char *myName; - if (objc < 5 || !(objc & 1)) { + if (objc < 3 || !(objc & 1)) { Tcl_WrongNumArgs(interp, 2, objv, - "ns otherVar myVar ?otherVar myVar ...?"); + "ns ?otherVar myVar ...?"); return TCL_ERROR; } |