From 0e0e4a480e6d9b0125a96ca982a3e9571578a037 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 11 Apr 2001 11:42:41 -0300 Subject: first implementation for weak tables --- ltable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 284826ef..c3e4d382 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.77 2001/02/23 17:17:25 roberto Exp roberto $ +** $Id: ltable.c,v 1.78 2001/03/26 14:31:49 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -118,6 +118,7 @@ Hash *luaH_new (lua_State *L, int size) { G(L)->roottable = t; t->mark = t; t->size = 0; + t->weakmode = 0; t->node = NULL; setnodevector(L, t, power2(L, size)); return t; -- cgit v1.2.3-55-g6feb