diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-27 17:35:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-27 17:35:40 -0300 |
| commit | 46c471d7e97292d923721655683affd7e8b314de (patch) | |
| tree | c9ae53cc94b1cca209fd5af7f594d355d6c111a9 /ltable.h | |
| parent | 859ecf36b6f96a5a0961f09c00cd98088081384c (diff) | |
| download | lua-46c471d7e97292d923721655683affd7e8b314de.tar.gz lua-46c471d7e97292d923721655683affd7e8b314de.tar.bz2 lua-46c471d7e97292d923721655683affd7e8b314de.zip | |
new `__newindex' eventfield
Diffstat (limited to 'ltable.h')
| -rw-r--r-- | ltable.h | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.h,v 1.40 2002/02/14 21:41:08 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.41 2002/03/11 12:45:00 roberto Exp roberto $ |
| 3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -14,14 +14,12 @@ | |||
| 14 | #define key(n) (&(n)->i_key) | 14 | #define key(n) (&(n)->i_key) |
| 15 | #define val(n) (&(n)->i_val) | 15 | #define val(n) (&(n)->i_val) |
| 16 | 16 | ||
| 17 | #define settableval(p,v) setobj(cast(TObject *, p), v) | ||
| 18 | |||
| 19 | 17 | ||
| 20 | const TObject *luaH_getnum (Table *t, int key); | 18 | const TObject *luaH_getnum (Table *t, int key); |
| 21 | void luaH_setnum (lua_State *L, Table *t, int key, const TObject *val); | 19 | TObject *luaH_setnum (lua_State *L, Table *t, int key); |
| 22 | const TObject *luaH_getstr (Table *t, TString *key); | 20 | const TObject *luaH_getstr (Table *t, TString *key); |
| 23 | const TObject *luaH_get (Table *t, const TObject *key); | 21 | const TObject *luaH_get (Table *t, const TObject *key); |
| 24 | void luaH_set (lua_State *L, Table *t, const TObject *key, const TObject *val); | 22 | TObject *luaH_set (lua_State *L, Table *t, const TObject *key); |
| 25 | Table *luaH_new (lua_State *L, int narray, int lnhash); | 23 | Table *luaH_new (lua_State *L, int narray, int lnhash); |
| 26 | void luaH_free (lua_State *L, Table *t); | 24 | void luaH_free (lua_State *L, Table *t); |
| 27 | int luaH_next (lua_State *L, Table *t, TObject *key); | 25 | int luaH_next (lua_State *L, Table *t, TObject *key); |
