aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ltable.h b/ltable.h
index 9a5fe9a5..3d1f674a 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 1.18 1999/12/07 12:05:34 roberto Exp roberto $ 2** $Id: ltable.h,v 1.19 2000/04/25 16:55:09 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*/
@@ -19,11 +19,13 @@
19Hash *luaH_new (lua_State *L, int nhash); 19Hash *luaH_new (lua_State *L, int nhash);
20void luaH_free (lua_State *L, Hash *t); 20void luaH_free (lua_State *L, Hash *t);
21const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key); 21const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key);
22const TObject *luaH_getnum (const Hash *t, Number key);
23const TObject *luaH_getstr (const Hash *t, TString *key);
22void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val); 24void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val);
23int luaH_pos (lua_State *L, const Hash *t, const TObject *r); 25int luaH_pos (lua_State *L, const Hash *t, const TObject *r);
24void luaH_setint (lua_State *L, Hash *t, int key, const TObject *val); 26void luaH_setint (lua_State *L, Hash *t, int key, const TObject *val);
25const TObject *luaH_getnum (const Hash *t, Number key);
26unsigned long luaH_hash (lua_State *L, const TObject *key); 27unsigned long luaH_hash (lua_State *L, const TObject *key);
28const TObject *luaH_getglobal (lua_State *L, const char *name);
27 29
28/* exported only for debugging */ 30/* exported only for debugging */
29Node *luaH_mainposition (const Hash *t, const TObject *key); 31Node *luaH_mainposition (const Hash *t, const TObject *key);