summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-01-16 21:05:46 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-01-16 21:05:46 (GMT)
commit6101ed5d08da556682f4d6c8870f87180eeef50a (patch)
tree5ccefed6827a363ec7449b2b710f2f55806a4c92 /generic/tclExecute.c
parent649a6115420f5c28c50feee55a7e0e441b22188d (diff)
downloadtcl-6101ed5d08da556682f4d6c8870f87180eeef50a.zip
tcl-6101ed5d08da556682f4d6c8870f87180eeef50a.tar.gz
tcl-6101ed5d08da556682f4d6c8870f87180eeef50a.tar.bz2
* generic/tclCompExpr.c: add an 'optimize' argument to
* generic/tclCompile.c: TclCompileExpr() to profit from better * generic/tclCompile.h: literal management according to usage. * generic/tclExecute.c:
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 472ed7f..d28fd74 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.359 2008/01/16 19:44:13 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.360 2008/01/16 21:05:48 msofer Exp $
*/
#include "tclInt.h"
@@ -1228,14 +1228,7 @@ Tcl_ExprObj(
const char *string = TclGetStringFromObj(objPtr, &length);
TclInitCompileEnv(interp, &compEnv, string, length, NULL, 0);
-
- /*
- * TODO: Consider creating and calling an alternative routine
- * that will compile bytecode for one-off expressions like this
- * one with optimize==0, for improved efficiency.
- */
-
- TclCompileExpr(interp, string, length, &compEnv);
+ TclCompileExpr(interp, string, length, &compEnv, 0);
/*
* Successful compilation. If the expression yielded no instructions,