diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-04 17:42:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-04 17:42:28 -0300 |
commit | 65f4a0f636eede0f026d0205ac929bc5a56f8b9c (patch) | |
tree | 28ad2176e61cb97c808f61ecf6ad2d46cef8463c /lvm.c | |
parent | 12acca7bd8168e12a09c345416ffd848e48b9ba4 (diff) | |
download | lua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.tar.gz lua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.tar.bz2 lua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.zip |
no more compatibility code for traversing tables
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.40 2005/05/03 19:01:17 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.41 2005/05/03 19:30:17 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -714,14 +714,6 @@ StkId luaV_execute (lua_State *L, int nexeccalls) { | |||
714 | } | 714 | } |
715 | continue; | 715 | continue; |
716 | } | 716 | } |
717 | case OP_TFORPREP: { /* for compatibility only */ | ||
718 | if (ttistable(ra)) { | ||
719 | setobjs2s(L, ra+1, ra); | ||
720 | setobj2s(L, ra, luaH_getstr(hvalue(gt(L)), luaS_new(L, "next"))); | ||
721 | } | ||
722 | dojump(L, pc, GETARG_sBx(i)); | ||
723 | continue; | ||
724 | } | ||
725 | case OP_SETLIST: { | 717 | case OP_SETLIST: { |
726 | int n = GETARG_B(i); | 718 | int n = GETARG_B(i); |
727 | int c = GETARG_C(i); | 719 | int c = GETARG_C(i); |