aboutsummaryrefslogtreecommitdiff
path: root/libs/lua/src/ltable.h
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-05-16 10:58:21 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-06-15 15:33:48 (GMT)
commitd4c5d99bcbf614e31e4f724319437e82d7f2a208 (patch)
tree84028219313ee62cc4bcccec2e3e2604e56c9dac /libs/lua/src/ltable.h
parentdb243c1d343781a1466e1b863e174427cd37e37f (diff)
downloadfluxbox_pavel-d4c5d99bcbf614e31e4f724319437e82d7f2a208.zip
fluxbox_pavel-d4c5d99bcbf614e31e4f724319437e82d7f2a208.tar.bz2
Add lua as an internal library in libs/lua
Diffstat (limited to 'libs/lua/src/ltable.h')
-rw-r--r--libs/lua/src/ltable.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/lua/src/ltable.h b/libs/lua/src/ltable.h
new file mode 100644
index 0000000..f5b9d5e
--- /dev/null
+++ b/libs/lua/src/ltable.h
@@ -0,0 +1,40 @@
1/*
2** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 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.nk)
15#define gval(n) (&(n)->i_val)
16#define gnext(n) ((n)->i_key.nk.next)
17
18#define key2tval(n) (&(n)->i_key.tvk)
19
20
21LUAI_FUNC const TValue *luaH_getnum (Table *t, int key);
22LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key);
23LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
24LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key);
25LUAI_FUNC const TValue *luaH_get (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, int narray, int lnhash);
28LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
29LUAI_FUNC void luaH_free (lua_State *L, Table *t);
30LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
31LUAI_FUNC int luaH_getn (Table *t);
32
33
34#if defined(LUA_DEBUG)
35LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
36LUAI_FUNC int luaH_isdummy (Node *n);
37#endif
38
39
40#endif