diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-04 11:23:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-04 11:23:41 -0300 |
commit | 03c6a05ec836c3a90a6b8d730120afdad39c092b (patch) | |
tree | 31f0bdf82969b1e082e92d7b5dd5d9e1496d64af /lvm.c | |
parent | 3d0b5edfe4df7ec54d6885b6b6ce917faddf6661 (diff) | |
download | lua-03c6a05ec836c3a90a6b8d730120afdad39c092b.tar.gz lua-03c6a05ec836c3a90a6b8d730120afdad39c092b.tar.bz2 lua-03c6a05ec836c3a90a6b8d730120afdad39c092b.zip |
no more nil-in-table
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.351 2018/03/16 14:21:20 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.352 2018/04/02 17:52:07 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 | */ |
@@ -1560,19 +1560,6 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1560 | } | 1560 | } |
1561 | vmbreak; | 1561 | vmbreak; |
1562 | } | 1562 | } |
1563 | vmcase(OP_UNDEF) { | ||
1564 | TValue *rb = vRB(i); | ||
1565 | luaT_keydef(L, vra, rb, 1); | ||
1566 | vmbreak; | ||
1567 | } | ||
1568 | vmcase(OP_ISDEF) { | ||
1569 | TValue *rb = vRB(i); | ||
1570 | TValue *rc = vRC(i); | ||
1571 | int res; | ||
1572 | Protect(res = luaT_keydef(L, rb, rc, 0)); | ||
1573 | setbvalue(vra, res == GETARG_k(i)); | ||
1574 | vmbreak; | ||
1575 | } | ||
1576 | vmcase(OP_CALL) { | 1563 | vmcase(OP_CALL) { |
1577 | int b = GETARG_B(i); | 1564 | int b = GETARG_B(i); |
1578 | int nresults = GETARG_C(i) - 1; | 1565 | int nresults = GETARG_C(i) - 1; |