diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-10 16:56:11 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-10 16:56:11 -0200 |
commit | dabb19fc17acee55f9052c5d17ec07360cec809d (patch) | |
tree | 76983221f936eee7e681559093b3b23f8968e711 /ltable.h | |
parent | 08496eea8b277d37c4de9cf75a011715ad6a4100 (diff) | |
download | lua-dabb19fc17acee55f9052c5d17ec07360cec809d.tar.gz lua-dabb19fc17acee55f9052c5d17ec07360cec809d.tar.bz2 lua-dabb19fc17acee55f9052c5d17ec07360cec809d.zip |
specialized versions for luaH_set (numbers and strings)
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.25 2000/11/24 17:39:56 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.26 2000/12/04 18:33:40 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 | */ |
@@ -16,16 +16,14 @@ | |||
16 | 16 | ||
17 | Hash *luaH_new (lua_State *L, int nhash); | 17 | Hash *luaH_new (lua_State *L, int nhash); |
18 | void luaH_free (lua_State *L, Hash *t); | 18 | void luaH_free (lua_State *L, Hash *t); |
19 | const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key); | 19 | const TObject *luaH_get (const Hash *t, const TObject *key); |
20 | const TObject *luaH_getnum (const Hash *t, lua_Number key); | 20 | const TObject *luaH_getnum (const Hash *t, lua_Number key); |
21 | const TObject *luaH_getstr (const Hash *t, TString *key); | 21 | const TObject *luaH_getstr (const Hash *t, TString *key); |
22 | void luaH_remove (Hash *t, TObject *key); | 22 | void luaH_remove (Hash *t, TObject *key); |
23 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); | 23 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); |
24 | Node * luaH_next (lua_State *L, const Hash *t, const TObject *r); | 24 | Node * luaH_next (lua_State *L, const Hash *t, const TObject *r); |
25 | TObject *luaH_setint (lua_State *L, Hash *t, int key); | 25 | TObject *luaH_setnum (lua_State *L, Hash *t, lua_Number key); |
26 | void luaH_setstrnum (lua_State *L, Hash *t, TString *key, lua_Number val); | 26 | TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); |
27 | luint32 luaH_hash (lua_State *L, const TObject *key); | ||
28 | const TObject *luaH_getglobal (lua_State *L, const char *name); | ||
29 | 27 | ||
30 | /* exported only for debugging */ | 28 | /* exported only for debugging */ |
31 | Node *luaH_mainposition (const Hash *t, const TObject *key); | 29 | Node *luaH_mainposition (const Hash *t, const TObject *key); |