diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-04-03 01:34:35 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-04-03 01:34:35 (GMT) |
commit | 8cfd70638999b67e37edba6967467a2ece7a91fe (patch) | |
tree | 9800be2d600ba1c88b6e67f0e8a1b46a08f32b64 /generic/tclCompile.c | |
parent | fa49c9af9b48554cf441f2554c9cd58d3ca1f267 (diff) | |
download | tcl-8cfd70638999b67e37edba6967467a2ece7a91fe.zip tcl-8cfd70638999b67e37edba6967467a2ece7a91fe.tar.gz tcl-8cfd70638999b67e37edba6967467a2ece7a91fe.tar.bz2 |
* generic/tclBasic.c: Added bytecode compilers for the
* generic/tclCompCmds.c: variable linking commands: 'global',
* generic/tclCompile.h: 'variable', 'upvar', 'namespace upvar'
* generic/tclExecute.c: [Patch 1688593]
* generic/tclInt.h:
* generic/tclVar.c:
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index dbd8db2..419e177 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.111 2007/04/01 00:32:26 dkf Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.112 2007/04/03 01:34:36 msofer Exp $ */ #include "tclInt.h" @@ -372,6 +372,15 @@ InstructionDesc tclInstructionTable[] = { * Stack: ... value => ... * Note that the jump table contains offsets relative to the PC when * it points to this instruction; the code is relocatable. */ + {"upvar", 5, 0, 1, {OPERAND_LVT4}}, + /* finds level and otherName in stack, links to local variable at + * index op1. Leaves the level on stack. */ + {"nsupvar", 5, 0, 1, {OPERAND_LVT4}}, + /* finds namespace and otherName in stack, links to local variable at + * index op1. Leaves the namespace on stack. */ + {"variable", 5, 0, 1, {OPERAND_LVT4}}, + /* finds namespace and otherName in stack, links to local variable at + * index op1. Leaves the namespace on stack. */ {0} }; |