diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-13 17:15:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-13 17:15:59 -0300 |
commit | 6d268b0b00ae63e5d06aedc4fb3cec105123a565 (patch) | |
tree | 26fac79b53bfd79a9351291427358eb2e89c7360 /lopcodes.c | |
parent | c7677471918fa55095f4993484eb5805091364fd (diff) | |
download | lua-github-6d268b0b00ae63e5d06aedc4fb3cec105123a565.tar.gz |
new semantics for "for" local variables
Diffstat (limited to 'lopcodes.c')
-rw-r--r-- | lopcodes.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lopcodes.c,v 1.21 2002/08/20 20:03:05 roberto Exp roberto $ +** $Id: lopcodes.c,v 1.22 2002/12/04 17:38:31 roberto Exp roberto $ ** extracted automatically from lopcodes.h by mkprint.lua ** DO NOT EDIT ** See Copyright Notice in lua.h @@ -46,6 +46,7 @@ const char *const luaP_opnames[] = { "TAILCALL", "RETURN", "FORLOOP", + "FORPREP", "TFORLOOP", "TFORPREP", "SETLIST", @@ -92,6 +93,7 @@ const lu_byte luaP_opmodes[NUM_OPCODES] = { ,opmode(0, 0, 0, 0, 0, 0, iABC) /* OP_TAILCALL */ ,opmode(0, 0, 0, 0, 0, 0, iABC) /* OP_RETURN */ ,opmode(0, 0, 0, 0, 0, 0, iAsBx) /* OP_FORLOOP */ + ,opmode(0, 0, 0, 0, 0, 0, iAsBx) /* OP_FORPREP */ ,opmode(1, 0, 0, 0, 0, 0, iABC) /* OP_TFORLOOP */ ,opmode(0, 0, 0, 0, 0, 0, iAsBx) /* OP_TFORPREP */ ,opmode(0, 0, 0, 0, 0, 0, iABx) /* OP_SETLIST */ |