mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Full abstraction for representation of array values
This commit is contained in:
parent
b8b709b6d4
commit
43c8e5bded
9 changed files with 128 additions and 93 deletions
4
lvm.h
4
lvm.h
|
|
@ -92,7 +92,7 @@ typedef enum {
|
|||
if ((u - 1u < h->alimit)) { \
|
||||
int tag = *getArrTag(h,u); \
|
||||
if (tagisempty(tag)) aux = HNOTFOUND; \
|
||||
else { arr2val(h, u, tag, res); aux = HOK; }} \
|
||||
else { farr2val(h, u, tag, res); aux = HOK; }} \
|
||||
else { aux = luaH_getint(h, u, res); }}
|
||||
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ typedef enum {
|
|||
if ((u - 1u < h->alimit)) { \
|
||||
lu_byte *tag = getArrTag(h,u); \
|
||||
if (tagisempty(*tag)) aux = ~cast_int(u); \
|
||||
else { val2arr(h, u, tag, val); aux = HOK; }} \
|
||||
else { fval2arr(h, u, tag, val); aux = HOK; }} \
|
||||
else { aux = luaH_psetint(h, u, val); }}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue