summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authorandreask@activestate.com <andreas_kupries>2006-11-28 22:20:27 (GMT)
committerandreask@activestate.com <andreas_kupries>2006-11-28 22:20:27 (GMT)
commit90177f0335ef6bc85da92be2537d1fb7a27d3ddf (patch)
treec4542b66e173006f66825f5cfb1617a4fd9766e1 /generic/tclIOUtil.c
parentc344f69de3ef692f07ef625961d6b0cbaca1cbf3 (diff)
downloadtcl-90177f0335ef6bc85da92be2537d1fb7a27d3ddf.zip
tcl-90177f0335ef6bc85da92be2537d1fb7a27d3ddf.tar.gz
tcl-90177f0335ef6bc85da92be2537d1fb7a27d3ddf.tar.bz2
* generic/tclBasic.c: TIP #280 implementation.
* generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index f10c757..affc185 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.137 2006/11/15 20:08:44 dgp Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.138 2006/11/28 22:20:28 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -1806,6 +1806,9 @@ Tcl_FSEvalFileEx(
iPtr->scriptFile = pathPtr;
Tcl_IncrRefCount(iPtr->scriptFile);
string = Tcl_GetStringFromObj(objPtr, &length);
+ /* TIP #280 Force the evaluator to open a frame for a sourced
+ * file. */
+ iPtr->evalFlags |= TCL_EVAL_FILE;
result = Tcl_EvalEx(interp, string, length, 0);
/*