Macros | Functions
ltable.h File Reference
#include "lobject.h"
Include dependency graph for ltable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define allocsizenode(t)   (isdummy(t) ? 0 : sizenode(t))
 
#define gnext(n)   ((n)->u.next)
 
#define gnode(t, i)   (&(t)->node[i])
 
#define gval(n)   (&(n)->i_val)
 
#define invalidateTMcache(t)   ((t)->flags &= ~maskflags)
 
#define isdummy(t)   ((t)->lastfree == NULL)
 
#define nodefromval(v)   cast(Node *, (v))
 

Functions

LUAI_FUNC void luaH_finishset (lua_State *L, Table *t, const TValue *key, const TValue *slot, TValue *value)
 
LUAI_FUNC void luaH_free (lua_State *L, Table *t)
 
const LUAI_FUNC TValueluaH_get (Table *t, const TValue *key)
 
const LUAI_FUNC TValueluaH_getint (Table *t, lua_Integer key)
 
LUAI_FUNC lua_Unsigned luaH_getn (Table *t)
 
const LUAI_FUNC TValueluaH_getshortstr (Table *t, TString *key)
 
const LUAI_FUNC TValueluaH_getstr (Table *t, TString *key)
 
LUAI_FUNC TableluaH_new (lua_State *L)
 
LUAI_FUNC void luaH_newkey (lua_State *L, Table *t, const TValue *key, TValue *value)
 
LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key)
 
LUAI_FUNC unsigned int luaH_realasize (const Table *t)
 
LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, unsigned int nhsize)
 
LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize)
 
LUAI_FUNC void luaH_set (lua_State *L, Table *t, const TValue *key, TValue *value)
 
LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value)
 

Macro Definition Documentation

◆ allocsizenode

#define allocsizenode (   t)    (isdummy(t) ? 0 : sizenode(t))

Definition at line 31 of file ltable.h.

◆ gnext

#define gnext (   n)    ((n)->u.next)

Definition at line 15 of file ltable.h.

◆ gnode

#define gnode (   t,
 
)    (&(t)->node[i])

Definition at line 13 of file ltable.h.

◆ gval

#define gval (   n)    (&(n)->i_val)

Definition at line 14 of file ltable.h.

◆ invalidateTMcache

#define invalidateTMcache (   t)    ((t)->flags &= ~maskflags)

Definition at line 23 of file ltable.h.

◆ isdummy

#define isdummy (   t)    ((t)->lastfree == NULL)

Definition at line 27 of file ltable.h.

◆ nodefromval

#define nodefromval (   v)    cast(Node *, (v))

Definition at line 35 of file ltable.h.

Function Documentation

◆ luaH_finishset()

LUAI_FUNC void luaH_finishset ( lua_State L,
Table t,
const TValue key,
const TValue slot,
TValue value 
)

Definition at line 800 of file ltable.c.

◆ luaH_free()

LUAI_FUNC void luaH_free ( lua_State L,
Table t 
)

Definition at line 627 of file ltable.c.

◆ luaH_get()

const LUAI_FUNC TValue* luaH_get ( Table t,
const TValue key 
)

Definition at line 777 of file ltable.c.

◆ luaH_getint()

const LUAI_FUNC TValue* luaH_getint ( Table t,
lua_Integer  key 
)

Definition at line 719 of file ltable.c.

◆ luaH_getn()

LUAI_FUNC lua_Unsigned luaH_getn ( Table t)

Definition at line 912 of file ltable.c.

◆ luaH_getshortstr()

const LUAI_FUNC TValue* luaH_getshortstr ( Table t,
TString key 
)

Definition at line 747 of file ltable.c.

◆ luaH_getstr()

const LUAI_FUNC TValue* luaH_getstr ( Table t,
TString key 
)

Definition at line 763 of file ltable.c.

◆ luaH_new()

LUAI_FUNC Table* luaH_new ( lua_State L)

Definition at line 615 of file ltable.c.

◆ luaH_newkey()

LUAI_FUNC void luaH_newkey ( lua_State L,
Table t,
const TValue key,
TValue value 
)

Definition at line 654 of file ltable.c.

◆ luaH_next()

LUAI_FUNC int luaH_next ( lua_State L,
Table t,
StkId  key 
)

Definition at line 338 of file ltable.c.

◆ luaH_realasize()

LUAI_FUNC unsigned int luaH_realasize ( const Table t)

Definition at line 241 of file ltable.c.

◆ luaH_resize()

LUAI_FUNC void luaH_resize ( lua_State L,
Table t,
unsigned int  nasize,
unsigned int  nhsize 
)

Definition at line 542 of file ltable.c.

◆ luaH_resizearray()

LUAI_FUNC void luaH_resizearray ( lua_State L,
Table t,
unsigned int  nasize 
)

Definition at line 579 of file ltable.c.

◆ luaH_set()

LUAI_FUNC void luaH_set ( lua_State L,
Table t,
const TValue key,
TValue value 
)

Definition at line 813 of file ltable.c.

◆ luaH_setint()

LUAI_FUNC void luaH_setint ( lua_State L,
Table t,
lua_Integer  key,
TValue value 
)

Definition at line 819 of file ltable.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49