summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-01 03:10:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-01 03:10:35 (GMT)
commite4934a0b0d10dcb22c615f1ff62a6e596b753455 (patch)
treef8b35fdda3fe85388bcbea559accd2e74916e7d3 /generic/tclBasic.c
parent867b2ba591026b6f486b636329810e80b5069077 (diff)
downloadtcl-e4934a0b0d10dcb22c615f1ff62a6e596b753455.zip
tcl-e4934a0b0d10dcb22c615f1ff62a6e596b753455.tar.gz
tcl-e4934a0b0d10dcb22c615f1ff62a6e596b753455.tar.bz2
* generic/tclBasic.c (Tcl_EvalObjEx): Removed the flag bit value
* generic/tclInt.h (Interp): USE_EVAL_DIRECT. It was used only * generic/tcLTest.c (TestevalexObjCmd): in the testing command * tests/parser.test (parse-9.2): [testevalex] and nothing in the test suite made use of the capability it enabled.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index ea3e03c..2d068fc 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.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: tclBasic.c,v 1.120 2004/09/30 23:06:47 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.121 2004/10/01 03:10:35 dgp Exp $
*/
#include "tclInt.h"
@@ -3786,7 +3786,7 @@ Tcl_EvalObjEx(interp, objPtr, flags)
Tcl_IncrRefCount(objPtr);
- if ((iPtr->flags & USE_EVAL_DIRECT) || (flags & TCL_EVAL_DIRECT)) {
+ if (flags & TCL_EVAL_DIRECT) {
/*
* We're not supposed to use the compiler or byte-code interpreter.
* Let Tcl_EvalEx evaluate the command directly (and probably
@@ -3797,12 +3797,8 @@ Tcl_EvalObjEx(interp, objPtr, flags)
* appreciable improvement in execution speed. This is because it
* allows us to avoid a setFromAny step that would just pack
* everything into a string and back out again.
- *
- * USE_EVAL_DIRECT is a special flag used for testing purpose only
- * (ensure we go into the TCL_EVAL_DIRECT path, avoiding opt)
*/
- if (!(iPtr->flags & USE_EVAL_DIRECT) &&
- (objPtr->typePtr == &tclListType) && /* is a list... */
+ if ((objPtr->typePtr == &tclListType) && /* is a list... */
(objPtr->bytes == NULL) /* ...without a string rep */) {
register List *listRepPtr =
(List *) objPtr->internalRep.twoPtrValue.ptr1;