00001
00002
00003
00004
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)
00015 #define gval(n) (&(n)->i_val)
00016
00017
00018
00019 const TObject *luaH_getnum (Table *t, int key)
00020 ;
00021 TObject *luaH_setnum (lua_State *L, Table *t, int key)
00022 ;
00023
00024 const TObject *luaH_getstr (Table *t, TString *key)
00025 ;
00026
00027 const TObject *luaH_get (Table *t, const TObject *key)
00028 ;
00029 TObject *luaH_set (lua_State *L, Table *t, const TObject *key)
00030 ;
00031
00032 Table *luaH_new (lua_State *L, int narray, int lnhash)
00033 ;
00034 void luaH_free (lua_State *L, Table *t)
00035 ;
00036 int luaH_next (lua_State *L, Table *t, StkId key)
00037 ;
00038
00039
00040 Node *luaH_mainposition (const Table *t, const TObject *key)
00041 ;
00042
00043
00044 #endif