summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-01 12:45:17 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-01 12:45:17 (GMT)
commita4f55f2e8217331b1246d87b5244116fbe7be28b (patch)
treeb1e8471c56791d7d6064499e823653970b1550a6 /generic/tclVar.c
parent659cfd43ab1e3669896b987ce4d501df9e9b80cc (diff)
downloadtcl-a4f55f2e8217331b1246d87b5244116fbe7be28b.zip
tcl-a4f55f2e8217331b1246d87b5244116fbe7be28b.tar.gz
tcl-a4f55f2e8217331b1246d87b5244116fbe7be28b.tar.bz2
Speed up [upvar] and [uplevel] by not forcing level references to be parsed
as strings every time through. [Patch 1037357]
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index ed6ec8d..5cef499 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -15,7 +15,7 @@
* 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.92 2004/09/29 22:17:28 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.93 2004/10/01 12:45:20 dkf Exp $
*/
#ifdef STDC_HEADERS
@@ -3877,7 +3877,7 @@ Tcl_UpvarObjCmd(dummy, interp, objc, objv)
Tcl_Obj *CONST objv[]; /* Argument objects. */
{
CallFrame *framePtr;
- char *frameSpec, *localName;
+ char *localName;
int result;
if (objc < 3) {
@@ -3892,8 +3892,7 @@ Tcl_UpvarObjCmd(dummy, interp, objc, objv)
* linked to.
*/
- frameSpec = TclGetString(objv[1]);
- result = TclGetFrame(interp, frameSpec, &framePtr);
+ result = TclObjGetFrame(interp, objv[1], &framePtr);
if (result == -1) {
return TCL_ERROR;
}