diff options
-rw-r--r-- | lauxlib.c | 6 | ||||
-rw-r--r-- | lbaselib.c | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.100 2003/04/07 14:35:00 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.101 2003/05/15 12:20:24 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -271,8 +271,8 @@ static void getsizes (lua_State *L) { | |||
271 | lua_pushvalue(L, -1); /* `size' will be its own metatable */ | 271 | lua_pushvalue(L, -1); /* `size' will be its own metatable */ |
272 | lua_setmetatable(L, -2); | 272 | lua_setmetatable(L, -2); |
273 | lua_pushliteral(L, "__mode"); | 273 | lua_pushliteral(L, "__mode"); |
274 | lua_pushliteral(L, "k"); | 274 | lua_pushliteral(L, "kv"); |
275 | lua_rawset(L, -3); /* metatable(N).__mode = "k" */ | 275 | lua_rawset(L, -3); /* metatable(N).__mode = "kv" */ |
276 | lua_pushvalue(L, -1); | 276 | lua_pushvalue(L, -1); |
277 | lua_rawseti(L, LUA_REGISTRYINDEX, ARRAYSIZE_REF); /* store in register */ | 277 | lua_rawseti(L, LUA_REGISTRYINDEX, ARRAYSIZE_REF); /* store in register */ |
278 | } | 278 | } |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.129 2003/03/19 21:14:34 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.130 2003/04/03 13:35:34 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -656,8 +656,8 @@ static void base_open (lua_State *L) { | |||
656 | lua_pushvalue(L, -1); /* `w' will be its own metatable */ | 656 | lua_pushvalue(L, -1); /* `w' will be its own metatable */ |
657 | lua_setmetatable(L, -2); | 657 | lua_setmetatable(L, -2); |
658 | lua_pushliteral(L, "__mode"); | 658 | lua_pushliteral(L, "__mode"); |
659 | lua_pushliteral(L, "k"); | 659 | lua_pushliteral(L, "kv"); |
660 | lua_rawset(L, -3); /* metatable(w).__mode = "k" */ | 660 | lua_rawset(L, -3); /* metatable(w).__mode = "kv" */ |
661 | lua_pushcclosure(L, luaB_newproxy, 1); | 661 | lua_pushcclosure(L, luaB_newproxy, 1); |
662 | lua_rawset(L, -3); /* set global `newproxy' */ | 662 | lua_rawset(L, -3); /* set global `newproxy' */ |
663 | lua_rawset(L, -1); /* set global _G */ | 663 | lua_rawset(L, -1); /* set global _G */ |