diff options
Diffstat (limited to 'ltablib.c')
| -rw-r--r-- | ltablib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltablib.c,v 1.54 2010/01/13 19:59:10 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.55 2010/03/13 03:57:46 roberto Exp roberto $ |
| 3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -324,7 +324,7 @@ static const luaL_Reg tab_funcs[] = { | |||
| 324 | 324 | ||
| 325 | 325 | ||
| 326 | LUAMOD_API int luaopen_table (lua_State *L) { | 326 | LUAMOD_API int luaopen_table (lua_State *L) { |
| 327 | luaL_register(L, LUA_TABLIBNAME, tab_funcs); | 327 | luaL_newlib(L, tab_funcs); |
| 328 | #if defined(LUA_COMPAT_UNPACK) | 328 | #if defined(LUA_COMPAT_UNPACK) |
| 329 | /* _G.unpack = table.unpack */ | 329 | /* _G.unpack = table.unpack */ |
| 330 | lua_getfield(L, -1, "unpack"); | 330 | lua_getfield(L, -1, "unpack"); |
