|
native Lua
0.4.0
Lua on the platform you use with the compiler you choose
|
#include "lprefix.h"#include <math.h>#include <limits.h>#include "lua.h"#include "ldebug.h"#include "ldo.h"#include "lgc.h"#include "lmem.h"#include "lobject.h"#include "lstate.h"#include "lstring.h"#include "ltable.h"#include "lvm.h"
Data Structures | |
| struct | AuxsetnodeT |
Macros | |
| #define | ltable_c |
| #define | LUA_CORE |
| #define | MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) |
| #define | MAXASIZE (1u << MAXABITS) |
| #define | MAXHBITS (MAXABITS - 1) |
| #define | hashpow2(t, n) (gnode(t, lmod((n), sizenode(t)))) |
| #define | hashstr(t, str) hashpow2(t, (str)->hash) |
| #define | hashboolean(t, p) hashpow2(t, p) |
| #define | hashint(t, i) hashpow2(t, i) |
| #define | hashmod(t, n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) |
| #define | hashpointer(t, p) hashmod(t, point2uint(p)) |
| #define | dummynode (&dummynode_) |
Functions | |
| int | luaH_next (lua_State *L, Table *t, StkId key) |
| 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) |
| Table * | luaH_new (lua_State *L) |
| void | luaH_free (lua_State *L, Table *t) |
| TValue * | luaH_newkey (lua_State *L, Table *t, const TValue *key) |
| const TValue * | luaH_getint (Table *t, lua_Integer key) |
| const TValue * | luaH_getshortstr (Table *t, TString *key) |
| const TValue * | luaH_getstr (Table *t, TString *key) |
| const TValue * | luaH_get (Table *t, const TValue *key) |
| TValue * | luaH_set (lua_State *L, Table *t, const TValue *key) |
| void | luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) |
| lua_Unsigned | luaH_getn (Table *t) |
| #define dummynode (&dummynode_) |
| #define hashboolean | ( | t, | |
| p | |||
| ) | hashpow2(t, p) |
| #define hashint | ( | t, | |
| i | |||
| ) | hashpow2(t, i) |
| #define hashpointer | ( | t, | |
| p | |||
| ) | hashmod(t, point2uint(p)) |
| #define hashstr | ( | t, | |
| str | |||
| ) | hashpow2(t, (str)->hash) |
| #define ltable_c |
| #define LUA_CORE |
| #define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) |
| #define MAXASIZE (1u << MAXABITS) |
| #define MAXHBITS (MAXABITS - 1) |
| const TValue* luaH_getint | ( | Table * | t, |
| lua_Integer | key | ||
| ) |
| lua_Unsigned luaH_getn | ( | Table * | t | ) |
| void luaH_setint | ( | lua_State * | L, |
| Table * | t, | ||
| lua_Integer | key, | ||
| TValue * | value | ||
| ) |
1.8.20