diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-27 00:39:57 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-27 00:39:57 (GMT) |
commit | 69ba11554c721b6f8f3cc0fd8b033dc5e287ccea (patch) | |
tree | b04d1d7a9d6a2578cc67ebc59c1f4f6393081ab6 | |
parent | 308af5498280e9cc453d94bc6caa9e15f67c96bc (diff) | |
download | tcl-69ba11554c721b6f8f3cc0fd8b033dc5e287ccea.zip tcl-69ba11554c721b6f8f3cc0fd8b033dc5e287ccea.tar.gz tcl-69ba11554c721b6f8f3cc0fd8b033dc5e287ccea.tar.bz2 |
* generic/tclProc.c (SetLambdaFromAny): minor change, eliminate
redundant call to Tcl_GetString (thanks aku).
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclProc.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,6 +1,9 @@ 2006-10-26 Miguel Sofer <msofer@users.sf.net> - * generic/tclInterp.c (ApplyObjCmd):a + * generic/tclProc.c (SetLambdaFromAny): minor change, eliminate + redundant call to Tcl_GetString (thanks aku). + + * generic/tclInterp.c (ApplyObjCmd): * generic/tclNamesp.c (EnsembleImplementationCmd): replaced ckalloc (heap) with TclStackAlloc (execution stack). diff --git a/generic/tclProc.c b/generic/tclProc.c index cff6bef..74d6ebd 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclProc.c,v 1.99 2006/10/24 22:31:09 msofer Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.100 2006/10/27 00:39:57 msofer Exp $ */ #include "tclInt.h" @@ -2027,7 +2027,7 @@ SetLambdaFromAny( bodyPtr, &procPtr) != TCL_OK) { TclFormatToErrorInfo(interp, "\n (parsing lambda expression \"%s\")", - Tcl_GetString(objPtr), NULL); + name, NULL); return TCL_ERROR; } |