summaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-10 10:13:36 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-10 10:13:36 -0200
commit47fc57a2529c83376883f36954082cfe80ae588f (patch)
treec2e57e2f9f7d78279144bfd9cbd04a3b1b131f12 /ltable.h
parent4d5fe1f54bc00850f77a7c42f9e95d0ff3f1ab5b (diff)
downloadlua-47fc57a2529c83376883f36954082cfe80ae588f.tar.gz
lua-47fc57a2529c83376883f36954082cfe80ae588f.tar.bz2
lua-47fc57a2529c83376883f36954082cfe80ae588f.zip
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/ltable.h b/ltable.h
index 5a4076bc..e953bb70 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 1.44 2003/03/18 12:50:04 roberto Exp roberto $ 2** $Id: ltable.h,v 1.45 2003/08/26 12:04:13 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*/
@@ -15,18 +15,18 @@
15#define gval(n) (&(n)->i_val) 15#define gval(n) (&(n)->i_val)
16 16
17 17
18const TObject *luaH_getnum (Table *t, int key); 18const TValue *luaH_getnum (Table *t, int key);
19TObject *luaH_setnum (lua_State *L, Table *t, int key); 19TValue *luaH_setnum (lua_State *L, Table *t, int key);
20const TObject *luaH_getstr (Table *t, TString *key); 20const TValue *luaH_getstr (Table *t, TString *key);
21TObject *luaH_setstr (lua_State *L, Table *t, TString *key); 21TValue *luaH_setstr (lua_State *L, Table *t, TString *key);
22const TObject *luaH_get (Table *t, const TObject *key); 22const TValue *luaH_get (Table *t, const TValue *key);
23TObject *luaH_set (lua_State *L, Table *t, const TObject *key); 23TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
24Table *luaH_new (lua_State *L, int narray, int lnhash); 24Table *luaH_new (lua_State *L, int narray, int lnhash);
25void luaH_free (lua_State *L, Table *t); 25void luaH_free (lua_State *L, Table *t);
26int luaH_next (lua_State *L, Table *t, StkId key); 26int luaH_next (lua_State *L, Table *t, StkId key);
27 27
28/* exported only for debugging */ 28/* exported only for debugging */
29Node *luaH_mainposition (const Table *t, const TObject *key); 29Node *luaH_mainposition (const Table *t, const TValue *key);
30 30
31 31
32#endif 32#endif