diff options
| author | dgp@users.sourceforge.net <dgp> | 2008-09-26 19:36:47 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2008-09-26 19:36:47 (GMT) |
| commit | 56dc514c55978a0b4f74c68810db0ca74250b51c (patch) | |
| tree | 3de038aa9224dde36f236ff723ee9f565ca49c9a /generic | |
| parent | f37f875b63a7ea6fdf9afcf7bc49cdce56b7894b (diff) | |
| download | tcl-56dc514c55978a0b4f74c68810db0ca74250b51c.zip tcl-56dc514c55978a0b4f74c68810db0ca74250b51c.tar.gz tcl-56dc514c55978a0b4f74c68810db0ca74250b51c.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')
| -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; } |
