aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-11 11:42:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-11 11:42:41 -0300
commit0e0e4a480e6d9b0125a96ca982a3e9571578a037 (patch)
tree21f13f032e9e337879168c74871d0d4bb2534248 /ltable.c
parent2a501882692afaa08ecc38af3052e9b4f60f6e85 (diff)
downloadlua-0e0e4a480e6d9b0125a96ca982a3e9571578a037.tar.gz
lua-0e0e4a480e6d9b0125a96ca982a3e9571578a037.tar.bz2
lua-0e0e4a480e6d9b0125a96ca982a3e9571578a037.zip
first implementation for weak tables
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltable.c b/ltable.c
index 284826ef..c3e4d382 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.77 2001/02/23 17:17:25 roberto Exp roberto $ 2** $Id: ltable.c,v 1.78 2001/03/26 14:31:49 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*/
@@ -118,6 +118,7 @@ Hash *luaH_new (lua_State *L, int size) {
118 G(L)->roottable = t; 118 G(L)->roottable = t;
119 t->mark = t; 119 t->mark = t;
120 t->size = 0; 120 t->size = 0;
121 t->weakmode = 0;
121 t->node = NULL; 122 t->node = NULL;
122 setnodevector(L, t, power2(L, size)); 123 setnodevector(L, t, power2(L, size));
123 return t; 124 return t;