[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.lua-5.2: 539432e5c6c4d9e269c
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone.lua-5.2: 539432e5c6c4d9e269c7fb4cdfdeb5e2b9117ca3 |
Date: |
Wed, 25 Apr 2012 01:37:48 +0200 (CEST) |
revision: 539432e5c6c4d9e269c7fb4cdfdeb5e2b9117ca3
date: 2012-04-24T23:39:28
author: Richard Hopkins <address@hidden>
branch: net.venge.monotone.lua-5.2
changelog:
Replaced 'lua_setfield' with Lua 5.1/5.2 compatible 'lua_setglobal'
With Lua 5.1, 'lua_setglobal' is defined in terms of 'lua_setfield': see
'http://www.lua.org/manual/5.1/manual.html#lua_setfield'.
manifest:
format_version "1"
new_manifest [94f944e5cb3b88c68451ae9edcf516dd18106951]
old_revision [abed170b1da27108dc8dc5fb33729e3e9270f6f6]
patch "src/lua.cc"
from [40d590a9716e281f2004c1b5eb19c2b0926e7dde]
to [bd639c79e1f8227e0f50461e27530bef41ce7cbb]
============================================================
--- src/lua.cc 40d590a9716e281f2004c1b5eb19c2b0926e7dde
+++ src/lua.cc bd639c79e1f8227e0f50461e27530bef41ce7cbb
@@ -460,7 +460,7 @@ void add_functions(lua_State * st)
{
lua_newtable(st);
lua_pushvalue(st, -1);
- lua_setfield(st, LUA_GLOBALSINDEX, table.c_str());
+ lua_setglobal(st, table.c_str());
}
for (luaext::fmap::const_iterator j = i->second.begin();
j != i->second.end(); ++j)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone.lua-5.2: 539432e5c6c4d9e269c7fb4cdfdeb5e2b9117ca3,
code <=