diff options
author | hobbs <hobbs@noemail.net> | 2001-11-14 23:17:01 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-11-14 23:17:01 (GMT) |
commit | 790913f75a784d5e869e4dc7b8c7aa36494005eb (patch) | |
tree | e2099b7a9dc4bb4dc572f484ee86baf5db2c28ae /generic/tclVar.c | |
parent | 64916862c32081813b93fc1e088a37a8323b972a (diff) | |
download | tcl-790913f75a784d5e869e4dc7b8c7aa36494005eb.zip tcl-790913f75a784d5e869e4dc7b8c7aa36494005eb.tar.gz tcl-790913f75a784d5e869e4dc7b8c7aa36494005eb.tar.bz2 |
Reference implementation of TIP's #22, #33 and #45. Adds the
ability of the [lindex] command to have multiple index arguments,
and adds the [lset] command. Both commands are byte-code compiled.
[Patch #471874] (work by Kenny, commited by Hobbs)
FossilOrigin-Name: 8e0db83abc5d97d0c5f9c8cbb3229ddc8e3a78da
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r-- | generic/tclVar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index d4290d0..530b3d8 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -10,11 +10,12 @@ * Copyright (c) 1987-1994 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. * Copyright (c) 1998-1999 by Scriptics Corporation. + * Copyright (c) 2001 by Kevin B. Kenny. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclVar.c,v 1.39 2001/11/09 23:06:04 dgp Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.40 2001/11/14 23:17:04 hobbs Exp $ */ #include "tclInt.h" @@ -2936,7 +2937,7 @@ Tcl_LappendObjCmd(dummy, interp, objc, objv) return result; } } - listRepPtr = (List *) varValuePtr->internalRep.otherValuePtr; + listRepPtr = (List *) varValuePtr->internalRep.twoPtrValue.ptr1; elemPtrs = listRepPtr->elements; numElems = listRepPtr->elemCount; |