summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authorandreas_kupries <andreas_kupries@noemail.net>2008-07-23 20:45:08 (GMT)
committerandreas_kupries <andreas_kupries@noemail.net>2008-07-23 20:45:08 (GMT)
commit9da93e44ec8ed930ee9126f93d9603cd7c281646 (patch)
tree350e642622f701d7e7996cdc4cb1ac86d4ee4ffd /generic/tclCmdIL.c
parent46c7302207cebc34115d758d417fab6826bb9e92 (diff)
downloadtcl-9da93e44ec8ed930ee9126f93d9603cd7c281646.zip
tcl-9da93e44ec8ed930ee9126f93d9603cd7c281646.tar.gz
tcl-9da93e44ec8ed930ee9126f93d9603cd7c281646.tar.bz2
* generic/tclBasic.c: Modified TclArgumentGet to reject pure lists
* generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour. FossilOrigin-Name: 4ad027ecef469153905de182fbd135e85d0f70fa
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 54359af..7bf46fb 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.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: tclCmdIL.c,v 1.47.2.15 2008/07/07 21:39:22 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.47.2.16 2008/07/23 20:45:17 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -1153,7 +1153,7 @@ InfoFrameCmd(dummy, interp, objc, objv)
lv [lc ++] = Tcl_NewStringObj ("type",-1);
lv [lc ++] = Tcl_NewStringObj (typeString [framePtr->type],-1);
lv [lc ++] = Tcl_NewStringObj ("line",-1);
- lv [lc ++] = Tcl_NewIntObj (framePtr->line[0]);
+ lv [lc ++] = Tcl_NewIntObj (1);
/* We put a duplicate of the command list obj into the result
* to ensure that the 'pure List'-property of the command