summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2001-12-11 19:45:52 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2001-12-11 19:45:52 (GMT)
commit5f40c6221b5fef57dec3b1b96604a0391e831d23 (patch)
treec7ddaa8af8d33a33ffe0ec446a5781b058762e7b /generic/tclCompile.c
parent3b26635ef7f745eeaaf7d1ecc4f89c48b04cb1f5 (diff)
downloadtcl-5f40c6221b5fef57dec3b1b96604a0391e831d23.zip
tcl-5f40c6221b5fef57dec3b1b96604a0391e831d23.tar.gz
tcl-5f40c6221b5fef57dec3b1b96604a0391e831d23.tar.bz2
small change in bytecode instructionsINST_LIST_INDEX_MULTI and INST_LSET_FLAT
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 0d223d7..2be7ed3 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.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: tclCompile.c,v 1.29 2001/12/10 15:44:34 msofer Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.30 2001/12/11 19:45:52 msofer Exp $
*/
#include "tclInt.h"
@@ -256,18 +256,18 @@ InstructionDesc instructionTable[] = {
{"lappendStk", 1, -1, 0, {OPERAND_NONE}},
/* Lappend general variable; value is stktop, then unparsed name */
{"lindexMulti", 5, INT_MIN, 1, {OPERAND_UINT4}},
- /* Lindex with generalized args, operand is number of indices.
- * (operand) entries from stktop are the indices; then list to
- * process. */
+ /* Lindex with generalized args, operand is number of stacked objs
+ * used: (operand-1) entries from stktop are the indices; then list
+ * to process. */
{"over", 5, +1, 1, {OPERAND_UINT4}},
/* Duplicate the arg-th element from top of stack (TOS=0) */
{"lsetList", 1, -2, 0, {OPERAND_NONE}},
/* Four-arg version of 'lset'. stktop is old value; next is
* new element value, next is the index list; pushes new value */
{"lsetFlat", 5, INT_MIN, 1, {OPERAND_UINT4}},
- /* Three- or >=5-arg version of 'lset'. stktop is old value,
- * next is new element value; next come objc-2 indices; pushes
- * the new value.
+ /* Three- or >=5-arg version of 'lset', operand is number of
+ * stacked objs: stktop is old value, next is new element value, next
+ * come (operand-2) indices; pushes the new value.
*/
{0}
};