]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - liblua/ltable.h
slight adjustment to include
[proxmark3-svn] / liblua / ltable.h
... / ...
CommitLineData
1/*
2** $Id: ltable.h,v 2.16 2011/08/17 20:26:47 roberto Exp $
3** Lua tables (hash)
4** See Copyright Notice in lua.h
5*/
6
7#ifndef ltable_h
8#define ltable_h
9
10#include "lobject.h"
11
12
13#define gnode(t,i) (&(t)->node[i])
14#define gkey(n) (&(n)->i_key.tvk)
15#define gval(n) (&(n)->i_val)
16#define gnext(n) ((n)->i_key.nk.next)
17
18#define invalidateTMcache(t) ((t)->flags = 0)
19
20
21LUAI_FUNC const TValue *luaH_getint (Table *t, int key);
22LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value);
23LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
24LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
25LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
26LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
27LUAI_FUNC Table *luaH_new (lua_State *L);
28LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize);
29LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
30LUAI_FUNC void luaH_free (lua_State *L, Table *t);
31LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
32LUAI_FUNC int luaH_getn (Table *t);
33
34
35#if defined(LUA_DEBUG)
36LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
37LUAI_FUNC int luaH_isdummy (Node *n);
38#endif
39
40
41#endif
Impressum, Datenschutz