diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-01 12:45:17 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-01 12:45:17 (GMT) |
commit | a4f55f2e8217331b1246d87b5244116fbe7be28b (patch) | |
tree | b1e8471c56791d7d6064499e823653970b1550a6 /generic/tclVar.c | |
parent | 659cfd43ab1e3669896b987ce4d501df9e9b80cc (diff) | |
download | tcl-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.c | 7 |
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; } |