Mercurial > vba-clojure
diff src/lua/ltable.h @ 11:27763b933818
raise lua sources up one level
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 11:07:39 -0600 |
parents | src/lua/src/ltable.h@f9f4f1b99eed |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/lua/ltable.h Sat Mar 03 11:07:39 2012 -0600 1.3 @@ -0,0 +1,40 @@ 1.4 +/* 1.5 +** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $ 1.6 +** Lua tables (hash) 1.7 +** See Copyright Notice in lua.h 1.8 +*/ 1.9 + 1.10 +#ifndef ltable_h 1.11 +#define ltable_h 1.12 + 1.13 +#include "lobject.h" 1.14 + 1.15 + 1.16 +#define gnode(t,i) (&(t)->node[i]) 1.17 +#define gkey(n) (&(n)->i_key.nk) 1.18 +#define gval(n) (&(n)->i_val) 1.19 +#define gnext(n) ((n)->i_key.nk.next) 1.20 + 1.21 +#define key2tval(n) (&(n)->i_key.tvk) 1.22 + 1.23 + 1.24 +LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 1.25 +LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 1.26 +LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 1.27 +LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 1.28 +LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 1.29 +LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 1.30 +LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 1.31 +LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 1.32 +LUAI_FUNC void luaH_free (lua_State *L, Table *t); 1.33 +LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 1.34 +LUAI_FUNC int luaH_getn (Table *t); 1.35 + 1.36 + 1.37 +#if defined(LUA_DEBUG) 1.38 +LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 1.39 +LUAI_FUNC int luaH_isdummy (Node *n); 1.40 +#endif 1.41 + 1.42 + 1.43 +#endif