diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-06 13:31:41 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-06 13:31:41 -0300 |
| commit | 8bcf6228765e56be19feb90c8805cc2fb2223188 (patch) | |
| tree | ce13072efce7a8aadcdde8de747073f3d7bf0859 /ltable.h | |
| parent | dbbf6c073b4203169a0221a082f6d00ccb27754c (diff) | |
| download | lua-8bcf6228765e56be19feb90c8805cc2fb2223188.tar.gz lua-8bcf6228765e56be19feb90c8805cc2fb2223188.tar.bz2 lua-8bcf6228765e56be19feb90c8805cc2fb2223188.zip | |
new signature for `luaH_set'
Diffstat (limited to 'ltable.h')
| -rw-r--r-- | ltable.h | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.h,v 1.21 2000/06/05 20:07:53 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.22 2000/06/05 20:15:33 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,18 +14,16 @@ | |||
| 14 | #define key(n) (&(n)->key) | 14 | #define key(n) (&(n)->key) |
| 15 | #define val(n) (&(n)->val) | 15 | #define val(n) (&(n)->val) |
| 16 | 16 | ||
| 17 | #define luaH_move(L, t,from,to) (luaH_setint(L, t, to, luaH_getnum(t, from))) | ||
| 18 | |||
| 19 | Hash *luaH_new (lua_State *L, int nhash); | 17 | Hash *luaH_new (lua_State *L, int nhash); |
| 20 | void luaH_free (lua_State *L, Hash *t); | 18 | void luaH_free (lua_State *L, Hash *t); |
| 21 | const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key); | 19 | const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key); |
| 22 | const TObject *luaH_getnum (const Hash *t, Number key); | 20 | const TObject *luaH_getnum (const Hash *t, Number key); |
| 23 | const TObject *luaH_getstr (const Hash *t, TString *key); | 21 | const TObject *luaH_getstr (const Hash *t, TString *key); |
| 24 | void luaH_remove (Hash *t, TObject *key); | 22 | void luaH_remove (Hash *t, TObject *key); |
| 25 | void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val); | 23 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); |
| 26 | int luaH_pos (lua_State *L, const Hash *t, const TObject *r); | 24 | int luaH_pos (lua_State *L, const Hash *t, const TObject *r); |
| 27 | void luaH_setint (lua_State *L, Hash *t, int key, const TObject *val); | 25 | TObject *luaH_setint (lua_State *L, Hash *t, int key); |
| 28 | void luaH_setstr (lua_State *L, Hash *t, TString *key, const TObject *val); | 26 | void luaH_setstrnum (lua_State *L, Hash *t, TString *key, Number val); |
| 29 | unsigned long luaH_hash (lua_State *L, const TObject *key); | 27 | unsigned long luaH_hash (lua_State *L, const TObject *key); |
| 30 | const TObject *luaH_getglobal (lua_State *L, const char *name); | 28 | const TObject *luaH_getglobal (lua_State *L, const char *name); |
| 31 | 29 | ||
