00001 /* 00002 ** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $ 00003 ** Lua tables (hash) 00004 ** See Copyright Notice in lua.h 00005 */ 00006 00007 #ifndef ltable_h 00008 #define ltable_h 00009 00010 #include "lobject.h" 00011 00012 00013 #define gnode(t,i) (&(t)->node[i]) 00014 #define gkey(n) (&(n)->i_key.nk) 00015 #define gval(n) (&(n)->i_val) 00016 #define gnext(n) ((n)->i_key.nk.next) 00017 00018 #define key2tval(n) (&(n)->i_key.tvk) 00019 00020 00021 LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 00022 LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 00023 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 00024 LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 00025 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 00026 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 00027 LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 00028 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 00029 LUAI_FUNC void luaH_free (lua_State *L, Table *t); 00030 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 00031 LUAI_FUNC int luaH_getn (Table *t); 00032 00033 00034 #if defined(LUA_DEBUG) 00035 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 00036 LUAI_FUNC int luaH_isdummy (Node *n); 00037 #endif 00038 00039 00040 #endif
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:54 2011 by Doxygen 1.6.1