diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-28 15:30:26 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-28 15:30:26 -0300 |
| commit | 9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9 (patch) | |
| tree | 90a993daf7e7b5eb8e92e713b084cf086b684c53 /ltable.c | |
| parent | 90972ff136f310f00b04d9e9837ee0640983b743 (diff) | |
| download | lua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.tar.gz lua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.tar.bz2 lua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.zip | |
tables and userdata all go to local list, too
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 2.79 2013/08/18 16:12:18 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.80 2013/08/27 20:04:00 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 | */ |
| @@ -378,7 +378,7 @@ static void rehash (lua_State *L, Table *t, const TValue *ek) { | |||
| 378 | 378 | ||
| 379 | 379 | ||
| 380 | Table *luaH_new (lua_State *L) { | 380 | Table *luaH_new (lua_State *L) { |
| 381 | Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table), &G(L)->allgc, 0)->h; | 381 | Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table), NULL, 0)->h; |
| 382 | t->metatable = NULL; | 382 | t->metatable = NULL; |
| 383 | t->flags = cast_byte(~0); | 383 | t->flags = cast_byte(~0); |
| 384 | t->array = NULL; | 384 | t->array = NULL; |
