diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-20 08:26:33 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-20 08:26:33 -0200 |
| commit | 32fd039bb563b24cbe4621dcc9b3cc18d9e078b0 (patch) | |
| tree | 381804f8030b6d1d09b5cc35bd46511d7dc29739 /ltablib.c | |
| parent | 75f73172c463af9643bc187eed7f1fd195238078 (diff) | |
| download | lua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.tar.gz lua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.tar.bz2 lua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.zip | |
`openlib' functions return new module
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.16 2002/11/14 15:41:38 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.17 2002/12/04 17:38:31 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 | */ |
| @@ -296,6 +296,6 @@ LUALIB_API int lua_tablibopen (lua_State *L) { | |||
| 296 | lua_pushliteral(L, "k"); | 296 | lua_pushliteral(L, "k"); |
| 297 | lua_rawset(L, -3); /* metatable(N).__mode = "k" */ | 297 | lua_rawset(L, -3); /* metatable(N).__mode = "k" */ |
| 298 | luaL_openlib(L, LUA_TABLIBNAME, tab_funcs, 1); | 298 | luaL_openlib(L, LUA_TABLIBNAME, tab_funcs, 1); |
| 299 | return 0; | 299 | return 1; |
| 300 | } | 300 | } |
| 301 | 301 | ||
