From 634344d61fb4bd7ebd033d37b814a0083e55b5a2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 6 Aug 2002 14:06:56 -0300 Subject: new API for weak mode --- ltable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 576c615e..6ef7aa57 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.114 2002/07/17 16:25:13 roberto Exp $ +** $Id: ltable.c,v 1.115 2002/08/05 14:45:32 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -309,6 +309,7 @@ Table *luaH_new (lua_State *L, int narray, int lnhash) { G(L)->roottable = t; t->mark = t; t->flags = cast(lu_byte, ~0); + t->mode = 0; /* temporary values (kept only if some malloc fails) */ t->array = NULL; t->sizearray = 0; -- cgit v1.2.3-55-g6feb