diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
commit | 47fc57a2529c83376883f36954082cfe80ae588f (patch) | |
tree | c2e57e2f9f7d78279144bfd9cbd04a3b1b131f12 /ltable.h | |
parent | 4d5fe1f54bc00850f77a7c42f9e95d0ff3f1ab5b (diff) | |
download | lua-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.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 | ||
18 | const TObject *luaH_getnum (Table *t, int key); | 18 | const TValue *luaH_getnum (Table *t, int key); |
19 | TObject *luaH_setnum (lua_State *L, Table *t, int key); | 19 | TValue *luaH_setnum (lua_State *L, Table *t, int key); |
20 | const TObject *luaH_getstr (Table *t, TString *key); | 20 | const TValue *luaH_getstr (Table *t, TString *key); |
21 | TObject *luaH_setstr (lua_State *L, Table *t, TString *key); | 21 | TValue *luaH_setstr (lua_State *L, Table *t, TString *key); |
22 | const TObject *luaH_get (Table *t, const TObject *key); | 22 | const TValue *luaH_get (Table *t, const TValue *key); |
23 | TObject *luaH_set (lua_State *L, Table *t, const TObject *key); | 23 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key); |
24 | Table *luaH_new (lua_State *L, int narray, int lnhash); | 24 | Table *luaH_new (lua_State *L, int narray, int lnhash); |
25 | void luaH_free (lua_State *L, Table *t); | 25 | void luaH_free (lua_State *L, Table *t); |
26 | int luaH_next (lua_State *L, Table *t, StkId key); | 26 | int luaH_next (lua_State *L, Table *t, StkId key); |
27 | 27 | ||
28 | /* exported only for debugging */ | 28 | /* exported only for debugging */ |
29 | Node *luaH_mainposition (const Table *t, const TObject *key); | 29 | Node *luaH_mainposition (const Table *t, const TValue *key); |
30 | 30 | ||
31 | 31 | ||
32 | #endif | 32 | #endif |