Ardour  9.0-pre0-582-g084a23a80d
ltable.h File Reference
#include "lobject.h"
Include dependency graph for ltable.h:

Go to the source code of this file.

Macros

#define gnode(t, i)   (&(t)->node[i])
 
#define gval(n)   (&(n)->i_val)
 
#define gnext(n)   ((n)->i_key.nk.next)
 
#define gkey(n)   cast(const TValue*, (&(n)->i_key.tvk))
 
#define wgkey(n)   (&(n)->i_key.nk)
 
#define invalidateTMcache(t)   ((t)->flags = 0)
 
#define isdummy(t)   ((t)->lastfree == NULL)
 
#define allocsizenode(t)   (isdummy(t) ? 0 : sizenode(t))
 
#define keyfromval(v)    (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))
 

Functions

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

Macro Definition Documentation

◆ allocsizenode

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

Definition at line 35 of file ltable.h.

◆ gkey

#define gkey (   n)    cast(const TValue*, (&(n)->i_key.tvk))

Definition at line 19 of file ltable.h.

◆ gnext

#define gnext (   n)    ((n)->i_key.nk.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 = 0)

Definition at line 27 of file ltable.h.

◆ isdummy

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

Definition at line 31 of file ltable.h.

◆ keyfromval

#define keyfromval (   v)     (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))

Definition at line 39 of file ltable.h.

◆ wgkey

#define wgkey (   n)    (&(n)->i_key.nk)

Definition at line 25 of file ltable.h.

Function Documentation

◆ luaH_free()

void luaH_free ( lua_State L,
Table t 
)

◆ luaH_get()

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

◆ luaH_getint()

const TValue* luaH_getint ( Table t,
lua_Integer  key 
)

◆ luaH_getn()

lua_Unsigned luaH_getn ( Table t)

◆ luaH_getshortstr()

const TValue* luaH_getshortstr ( Table t,
TString key 
)

◆ luaH_getstr()

const TValue* luaH_getstr ( Table t,
TString key 
)

◆ luaH_new()

Table* luaH_new ( lua_State L)

◆ luaH_newkey()

TValue* luaH_newkey ( lua_State L,
Table t,
const TValue key 
)

◆ luaH_next()

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

◆ luaH_resize()

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

◆ luaH_resizearray()

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

◆ luaH_set()

TValue* luaH_set ( lua_State L,
Table t,
const TValue key 
)

◆ luaH_setint()

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