no more compatibility code for traversing tables
This commit is contained in:
10
lvm.c
10
lvm.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lvm.c,v 2.40 2005/05/03 19:01:17 roberto Exp roberto $
|
||||
** $Id: lvm.c,v 2.41 2005/05/03 19:30:17 roberto Exp roberto $
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -714,14 +714,6 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
case OP_TFORPREP: { /* for compatibility only */
|
||||
if (ttistable(ra)) {
|
||||
setobjs2s(L, ra+1, ra);
|
||||
setobj2s(L, ra, luaH_getstr(hvalue(gt(L)), luaS_new(L, "next")));
|
||||
}
|
||||
dojump(L, pc, GETARG_sBx(i));
|
||||
continue;
|
||||
}
|
||||
case OP_SETLIST: {
|
||||
int n = GETARG_B(i);
|
||||
int c = GETARG_C(i);
|
||||
|
||||
Reference in New Issue
Block a user